Home
last modified time | relevance | path

Searched defs:i2c (Results 1 – 6 of 6) sorted by relevance

/hal_nuvoton-latest/m2l31x/StdDriver/inc/
Di2c.h84 #define I2C_SET_CONTROL_REG(i2c, u8Ctrl) ((i2c)->CTL0 = ((i2c)->CTL0 & ~0x3C) | (u8Ctrl)) argument
96 #define I2C_START(i2c) ((i2c)->CTL0 = ((i2c)->CTL0 | I2C_CTL0_SI_Msk) | I2C_CTL0_STA_Msk) argument
108 #define I2C_WAIT_READY(i2c) while(!((i2c)->CTL0 & I2C_CTL0_SI_Msk)) argument
120 #define I2C_GET_DATA(i2c) ((i2c)->DAT) argument
133 #define I2C_SET_DATA(i2c, u8Data) ((i2c)->DAT = (u8Data)) argument
145 #define I2C_GET_STATUS(i2c) ((i2c)->STATUS0) argument
158 #define I2C_GET_TIMEOUT_FLAG(i2c) ( ((i2c)->TOCTL & I2C_TOCTL_TOIF_Msk) == I2C_TOCTL_TOIF_Msk ? 1… argument
171 #define I2C_GET_WAKEUP_FLAG(i2c) ( ((i2c)->WKSTS & I2C_WKSTS_WKIF_Msk) == I2C_WKSTS_WKIF_Msk ? 1:0 … argument
183 #define I2C_CLEAR_WAKEUP_FLAG(i2c) ((i2c)->WKSTS = I2C_WKSTS_WKIF_Msk) argument
196 #define I2C_GET_WAKEUP_DONE(i2c) ( ((i2c)->WKSTS & I2C_WKSTS_WKAKDONE_Msk) == I2C_WKSTS_WKAKDONE_Ms… argument
[all …]
/hal_nuvoton-latest/m48x/StdDriver/inc/
Di2c.h73 #define I2C_SET_CONTROL_REG(i2c, u8Ctrl) ((i2c)->CTL0 = ((i2c)->CTL0 & ~0x3c) | (u8Ctrl)) argument
85 #define I2C_START(i2c) ((i2c)->CTL0 = ((i2c)->CTL0 & ~I2C_CTL0_SI_Msk) | I2C_CTL0_STA_Msk) argument
97 #define I2C_WAIT_READY(i2c) while(!((i2c)->CTL0 & I2C_CTL0_SI_Msk)) argument
109 #define I2C_GET_DATA(i2c) ((i2c)->DAT) argument
122 #define I2C_SET_DATA(i2c, u8Data) ((i2c)->DAT = (u8Data)) argument
134 #define I2C_GET_STATUS(i2c) ((i2c)->STATUS0) argument
147 #define I2C_GET_TIMEOUT_FLAG(i2c) ( ((i2c)->TOCTL & I2C_TOCTL_TOIF_Msk) == I2C_TOCTL_TOIF_Msk ? 1… argument
160 #define I2C_GET_WAKEUP_FLAG(i2c) ( ((i2c)->WKSTS & I2C_WKSTS_WKIF_Msk) == I2C_WKSTS_WKIF_Msk ? 1:0 … argument
172 #define I2C_CLEAR_WAKEUP_FLAG(i2c) ((i2c)->WKSTS = I2C_WKSTS_WKIF_Msk) argument
185 #define I2C_SMBUS_GET_STATUS(i2c) ((i2c)->BUSSTS) argument
[all …]
/hal_nuvoton-latest/m46x/StdDriver/inc/
Di2c.h83 #define I2C_SET_CONTROL_REG(i2c, u8Ctrl) ((i2c)->CTL0 = ((i2c)->CTL0 & ~0x3c) | (u8Ctrl)) argument
95 #define I2C_START(i2c) ((i2c)->CTL0 = ((i2c)->CTL0 & ~I2C_CTL0_SI_Msk) | I2C_CTL0_STA_Msk) argument
107 #define I2C_WAIT_READY(i2c) while(!((i2c)->CTL0 & I2C_CTL0_SI_Msk)) argument
119 #define I2C_GET_DATA(i2c) ((i2c)->DAT) argument
132 #define I2C_SET_DATA(i2c, u8Data) ((i2c)->DAT = (u8Data)) argument
144 #define I2C_GET_STATUS(i2c) ((i2c)->STATUS0) argument
157 #define I2C_GET_TIMEOUT_FLAG(i2c) ( ((i2c)->TOCTL & I2C_TOCTL_TOIF_Msk) == I2C_TOCTL_TOIF_Msk ? 1… argument
170 #define I2C_GET_WAKEUP_FLAG(i2c) ( ((i2c)->WKSTS & I2C_WKSTS_WKIF_Msk) == I2C_WKSTS_WKIF_Msk ? 1:0 … argument
182 #define I2C_CLEAR_WAKEUP_FLAG(i2c) ((i2c)->WKSTS = I2C_WKSTS_WKIF_Msk) argument
195 #define I2C_SMBUS_GET_STATUS(i2c) ((i2c)->BUSSTS) argument
[all …]
/hal_nuvoton-latest/m48x/StdDriver/src/
Di2c.c37 uint32_t I2C_Open(I2C_T *i2c, uint32_t u32BusClock) in I2C_Open()
71 void I2C_Close(I2C_T *i2c) in I2C_Close()
99 void I2C_ClearTimeoutFlag(I2C_T *i2c) in I2C_ClearTimeoutFlag()
118 void I2C_Trigger(I2C_T *i2c, uint8_t u8Start, uint8_t u8Stop, uint8_t u8Si, uint8_t u8Ack) in I2C_Trigger()
155 void I2C_DisableInt(I2C_T *i2c) in I2C_DisableInt()
170 void I2C_EnableInt(I2C_T *i2c) in I2C_EnableInt()
184 uint32_t I2C_GetBusClockFreq(I2C_T *i2c) in I2C_GetBusClockFreq()
211 uint32_t I2C_SetBusClockFreq(I2C_T *i2c, uint32_t u32BusClock) in I2C_SetBusClockFreq()
240 uint32_t I2C_GetIntFlag(I2C_T *i2c) in I2C_GetIntFlag()
265 uint32_t I2C_GetStatus(I2C_T *i2c) in I2C_GetStatus()
[all …]
/hal_nuvoton-latest/m2l31x/StdDriver/src/
Di2c.c38 uint32_t I2C_Open(I2C_T *i2c, uint32_t u32BusClock) in I2C_Open()
72 void I2C_Close(I2C_T *i2c) in I2C_Close()
110 void I2C_ClearTimeoutFlag(I2C_T *i2c) in I2C_ClearTimeoutFlag()
129 void I2C_Trigger(I2C_T *i2c, uint8_t u8Start, uint8_t u8Stop, uint8_t u8Si, uint8_t u8Ack) in I2C_Trigger()
166 void I2C_DisableInt(I2C_T *i2c) in I2C_DisableInt()
181 void I2C_EnableInt(I2C_T *i2c) in I2C_EnableInt()
195 uint32_t I2C_GetBusClockFreq(I2C_T *i2c) in I2C_GetBusClockFreq()
222 uint32_t I2C_SetBusClockFreq(I2C_T *i2c, uint32_t u32BusClock) in I2C_SetBusClockFreq()
251 uint32_t I2C_GetIntFlag(I2C_T *i2c) in I2C_GetIntFlag()
276 uint32_t I2C_GetStatus(I2C_T *i2c) in I2C_GetStatus()
[all …]
/hal_nuvoton-latest/m46x/StdDriver/src/
Di2c.c38 uint32_t I2C_Open(I2C_T *i2c, uint32_t u32BusClock) in I2C_Open()
72 void I2C_Close(I2C_T *i2c) in I2C_Close()
114 void I2C_ClearTimeoutFlag(I2C_T *i2c) in I2C_ClearTimeoutFlag()
133 void I2C_Trigger(I2C_T *i2c, uint8_t u8Start, uint8_t u8Stop, uint8_t u8Si, uint8_t u8Ack) in I2C_Trigger()
170 void I2C_DisableInt(I2C_T *i2c) in I2C_DisableInt()
185 void I2C_EnableInt(I2C_T *i2c) in I2C_EnableInt()
199 uint32_t I2C_GetBusClockFreq(I2C_T *i2c) in I2C_GetBusClockFreq()
226 uint32_t I2C_SetBusClockFreq(I2C_T *i2c, uint32_t u32BusClock) in I2C_SetBusClockFreq()
255 uint32_t I2C_GetIntFlag(I2C_T *i2c) in I2C_GetIntFlag()
280 uint32_t I2C_GetStatus(I2C_T *i2c) in I2C_GetStatus()
[all …]