Lines Matching defs:lpi2c

90 #define LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl) ((lpi2c)->CTL0 = ((lpi2c)->CTL0 & ~0x3C) | (u8Ctrl))  argument
102 #define LPI2C_START(lpi2c) ((lpi2c)->CTL0 = ((lpi2c)->CTL0 | LPI2C_CTL0_SI_Msk) | LPI2C_CTL0_STA_M… argument
114 #define LPI2C_WAIT_READY(lpi2c) while(!((lpi2c)->CTL0 & LPI2C_CTL0_SI_Msk)) argument
126 #define LPI2C_GET_DATA(lpi2c) ((lpi2c)->DAT) argument
139 #define LPI2C_SET_DATA(lpi2c, u8Data) ((lpi2c)->DAT = (u8Data)) argument
151 #define LPI2C_GET_STATUS(lpi2c) ((lpi2c)->STATUS0) argument
164 #define LPI2C_GET_TIMEOUT_FLAG(lpi2c) ( ((lpi2c)->TOCTL & LPI2C_TOCTL_TOIF_Msk) == LPI2C_TOCTL_TO… argument
177 #define LPI2C_GET_WAKEUP_FLAG(lpi2c) ( ((lpi2c)->WKSTS & LPI2C_WKSTS_WKIF_Msk) == LPI2C_WKSTS_WKIF_… argument
189 #define LPI2C_CLEAR_WAKEUP_FLAG(lpi2c) ((lpi2c)->WKSTS = LPI2C_WKSTS_WKIF_Msk) argument
202 #define LPI2C_GET_WAKEUP_DONE(lpi2c) ( ((lpi2c)->WKSTS & LPI2C_WKSTS_WKAKDONE_Msk) == LPI2C_WKSTS_W… argument
214 #define LPI2C_CLEAR_WAKEUP_DONE(lpi2c) ((lpi2c)->WKSTS = LPI2C_WKSTS_WKAKDONE_Msk) argument
227 #define LPI2C_GET_WAKEUP_WR_STATUS(lpi2c) ( ((lpi2c)->WKSTS & LPI2C_WKSTS_WRSTSWK_Msk) == LPI2C_WKS… argument
236 #define LPI2C_ENABLE_RX_PDMA(lpi2c) ((lpi2c)->CTL1 |= LPI2C_CTL1_RXPDMAEN_Msk) argument
245 #define LPI2C_ENABLE_TX_PDMA(lpi2c) ((lpi2c)->CTL1 |= LPI2C_CTL1_TXPDMAEN_Msk) argument
254 #define LPI2C_DISABLE_RX_PDMA(lpi2c) ((lpi2c)->CTL1 &= ~LPI2C_CTL1_RXPDMAEN_Msk) argument
263 #define LPI2C_DISABLE_TX_PDMA(lpi2c) ((lpi2c)->CTL1 &= ~LPI2C_CTL1_TXPDMAEN_Msk) argument
272 #define LPI2C_ENABLE_PDMA_STRETCH(lpi2c) ((lpi2c)->CTL1 |= LPI2C_CTL1_PDMASTR_Msk) argument
281 #define LPI2C_DISABLE_PDMA_STRETCH(lpi2c) ((lpi2c)->CTL1 &= ~LPI2C_CTL1_PDMASTR_Msk) argument
290 #define LPI2C_DISABLE_RST_PDMA(lpi2c) ((lpi2c)->CTL1 |= LPI2C_CTL1_PDMARST_Msk) argument
306 #define LPI2C_ENABLE_AUTO_MODE_INT(lpi2c, u32eIntSel) ((lpi2c)->AUTOCTL |= (u32eIntSel)) argument
322 #define LPI2C_DISABLE_AUTO_MODE_INT(lpi2c, u32eIntSel) ((lpi2c)->AUTOCTL |= (u32eIntSel)) argument
339 #define LPI2C_GET_AUTO_MODE_INT_FLAG(lpi2c,u32eIntTypeFlag) (((lpi2c)->AUTOSTS & (u32eIntTypeFla… argument
355 #define LPI2C_CLEAR_AUTO_MODE_INT_FLAG(lpi2c,u32eIntTypeFlag) ((lpi2c)->AUTOSTS = (u32eIntTypeFl… argument
367 #define LPI2C_AUTO_MODE_SW_TRIGGER(lpi2c) ((lpi2c)->AUTOCTL |= LPI2C_AUTOCTL_SWTRG_Msk) argument
385 __STATIC_INLINE void LPI2C_STOP(LPI2C_T *lpi2c) in LPI2C_STOP()