Lines Matching refs:BIT
15 #define I2C_CR1_PE BIT(0)
16 #define I2C_CR1_TXIE BIT(1)
17 #define I2C_CR1_RXIE BIT(2)
18 #define I2C_CR1_ADDRIE BIT(3)
19 #define I2C_CR1_NACKIE BIT(4)
20 #define I2C_CR1_STOPIE BIT(5)
21 #define I2C_CR1_TCIE BIT(6)
22 #define I2C_CR1_ERRIE BIT(7)
24 #define I2C_CR1_ANFOFF BIT(12)
25 #define I2C_CR1_SWRST BIT(13)
26 #define I2C_CR1_TXDMAEN BIT(14)
27 #define I2C_CR1_RXDMAEN BIT(15)
28 #define I2C_CR1_SBC BIT(16)
29 #define I2C_CR1_NOSTRETCH BIT(17)
30 #define I2C_CR1_WUPEN BIT(18)
31 #define I2C_CR1_GCEN BIT(19)
32 #define I2C_CR1_SMBHEN BIT(22)
33 #define I2C_CR1_SMBDEN BIT(21)
34 #define I2C_CR1_ALERTEN BIT(22)
35 #define I2C_CR1_PECEN BIT(23)
39 #define I2C_CR2_RD_WRN BIT(10)
41 #define I2C_CR2_ADD10 BIT(11)
42 #define I2C_CR2_HEAD10R BIT(12)
43 #define I2C_CR2_START BIT(13)
44 #define I2C_CR2_STOP BIT(14)
45 #define I2C_CR2_NACK BIT(15)
48 #define I2C_CR2_RELOAD BIT(24)
49 #define I2C_CR2_AUTOEND BIT(25)
50 #define I2C_CR2_PECBYTE BIT(26)
54 #define I2C_OAR1_OA1MODE BIT(10)
55 #define I2C_OAR1_OA1EN BIT(15)
61 #define I2C_OAR2_OA2MASK01 BIT(8)
62 #define I2C_OAR2_OA2MASK02 BIT(9)
64 #define I2C_OAR2_OA2MASK04 BIT(10)
65 #define I2C_OAR2_OA2MASK05 (BIT(8) | BIT(10))
66 #define I2C_OAR2_OA2MASK06 (BIT(9) | BIT(10))
68 #define I2C_OAR2_OA2EN BIT(15)
79 #define I2C_TIMEOUTR_TIDLE BIT(12)
80 #define I2C_TIMEOUTR_TIMOUTEN BIT(15)
82 #define I2C_TIMEOUTR_TEXTEN BIT(31)
85 #define I2C_ISR_TXE BIT(0)
86 #define I2C_ISR_TXIS BIT(1)
87 #define I2C_ISR_RXNE BIT(2)
88 #define I2C_ISR_ADDR BIT(3)
89 #define I2C_ISR_NACKF BIT(4)
90 #define I2C_ISR_STOPF BIT(5)
91 #define I2C_ISR_TC BIT(6)
92 #define I2C_ISR_TCR BIT(7)
93 #define I2C_ISR_BERR BIT(8)
94 #define I2C_ISR_ARLO BIT(9)
95 #define I2C_ISR_OVR BIT(10)
96 #define I2C_ISR_PECERR BIT(11)
97 #define I2C_ISR_TIMEOUT BIT(12)
98 #define I2C_ISR_ALERT BIT(13)
99 #define I2C_ISR_BUSY BIT(15)
100 #define I2C_ISR_DIR BIT(16)
104 #define I2C_ICR_ADDRCF BIT(3)
105 #define I2C_ICR_NACKCF BIT(4)
106 #define I2C_ICR_STOPCF BIT(5)
107 #define I2C_ICR_BERRCF BIT(8)
108 #define I2C_ICR_ARLOCF BIT(9)
109 #define I2C_ICR_OVRCF BIT(10)
110 #define I2C_ICR_PECCF BIT(11)
111 #define I2C_ICR_TIMOUTCF BIT(12)
112 #define I2C_ICR_ALERTCF BIT(13)
263 #define I2C_GENERATE_STOP (BIT(31) | I2C_CR2_STOP)
264 #define I2C_GENERATE_START_READ (BIT(31) | I2C_CR2_START | \
266 #define I2C_GENERATE_START_WRITE (BIT(31) | I2C_CR2_START)