-
Notifications
You must be signed in to change notification settings - Fork 0
/
bits.h
53 lines (48 loc) · 1.12 KB
/
bits.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Bits.h
*
* Created on: 04/09/2018
* Author: jlpe
*/
#ifndef BITS_H_
#define BITS_H_
/*! This definition is as a general definitions to bits in regiter or pins in the microcontroller.*/
typedef enum
{
BIT0, /*!< Bit 0 */
BIT1, /*!< Bit 1 */
BIT2, /*!< Bit 2 */
BIT3, /*!< Bit 3 */
BIT4, /*!< Bit 4 */
BIT5, /*!< Bit 5 */
BIT6, /*!< Bit 6 */
BIT7, /*!< Bit 7 */
BIT8, /*!< Bit 8 */
BIT9, /*!< Bit 9 */
BIT10, /*!< Bit 10 */
BIT11, /*!< Bit 11 */
BIT12, /*!< Bit 12 */
BIT13, /*!< Bit 13 */
BIT14, /*!< Bit 14 */
BIT15, /*!< Bit 15 */
BIT16, /*!< Bit 16 */
BIT17, /*!< Bit 17 */
BIT18, /*!< Bit 18 */
BIT19, /*!< Bit 19 */
BIT20, /*!< Bit 20 */
BIT21, /*!< Bit 21 */
BIT22, /*!< Bit 22 */
BIT23,/*!< Bit 23 */
BIT24, /*!< Bit 24 */
BIT25, /*!< Bit 25 */
BIT26, /*!< Bit 26 */
BIT27, /*!< Bit 27 */
BIT28, /*!< Bit 28 */
BIT29, /*!< Bit 29 */
BIT30, /*!< Bit 30 */
BIT31 /*!< Bit 31 */
} BitsType;
typedef enum{FALSE, TRUE} boolean_t;
/*! This definition is as a general definitions to bits turn-on or turn-off any bit*/
typedef enum {BIT_OFF, BIT_ON} BIT_ON_OFF_Type;
#endif /* BITS_H_ */