Searched refs:i2c (Results 1 – 5 of 5) sorted by relevance
| /hal_silabs-latest/gecko/emlib/src/ |
| D | em_i2c.c | 167 static void flushRx(I2C_TypeDef *i2c) in flushRx() argument 169 while (i2c->STATUS & I2C_STATUS_RXDATAV) { in flushRx() 170 i2c->RXDATA; in flushRx() 176 I2C_IntClear(i2c, I2C_IF_RXDATAV); in flushRx() 203 uint32_t I2C_BusFreqGet(I2C_TypeDef *i2c) in I2C_BusFreqGet() argument 211 if (i2c == I2C0) { in I2C_BusFreqGet() 214 } else if (i2c == I2C1) { in I2C_BusFreqGet() 218 } else if (i2c == I2C2) { in I2C_BusFreqGet() 226 n = (uint32_t)i2cNSum[(i2c->CTRL & _I2C_CTRL_CLHR_MASK) in I2C_BusFreqGet() 228 return freqHfper / ((n * (i2c->CLKDIV + 1)) + I2C_CR_MAX); in I2C_BusFreqGet() [all …]
|
| /hal_silabs-latest/simplicity_sdk/platform/emlib/src/ |
| D | em_i2c.c | 167 static void flushRx(I2C_TypeDef *i2c) in flushRx() argument 169 while (i2c->STATUS & I2C_STATUS_RXDATAV) { in flushRx() 170 i2c->RXDATA; in flushRx() 176 I2C_IntClear(i2c, I2C_IF_RXDATAV); in flushRx() 203 uint32_t I2C_BusFreqGet(I2C_TypeDef *i2c) in I2C_BusFreqGet() argument 211 if (i2c == I2C0) { in I2C_BusFreqGet() 214 } else if (i2c == I2C1) { in I2C_BusFreqGet() 218 } else if (i2c == I2C2) { in I2C_BusFreqGet() 226 n = (uint32_t)i2cNSum[(i2c->CTRL & _I2C_CTRL_CLHR_MASK) in I2C_BusFreqGet() 228 return freqHfper / ((n * (i2c->CLKDIV + 1)) + I2C_CR_MAX); in I2C_BusFreqGet() [all …]
|
| /hal_silabs-latest/simplicity_sdk/platform/emlib/inc/ |
| D | em_i2c.h | 275 uint32_t I2C_BusFreqGet(I2C_TypeDef *i2c); 276 void I2C_BusFreqSet(I2C_TypeDef *i2c, 280 void I2C_Enable(I2C_TypeDef *i2c, bool enable); 281 void I2C_Init(I2C_TypeDef *i2c, const I2C_Init_TypeDef *init); 294 __STATIC_INLINE void I2C_IntClear(I2C_TypeDef *i2c, uint32_t flags) in I2C_IntClear() argument 297 i2c->IF_CLR = flags; in I2C_IntClear() 299 i2c->IFC = flags; in I2C_IntClear() 314 __STATIC_INLINE void I2C_IntDisable(I2C_TypeDef *i2c, uint32_t flags) in I2C_IntDisable() argument 317 i2c->IEN_CLR = flags; in I2C_IntDisable() 319 i2c->IEN &= ~(flags); in I2C_IntDisable() [all …]
|
| /hal_silabs-latest/gecko/emlib/inc/ |
| D | em_i2c.h | 275 uint32_t I2C_BusFreqGet(I2C_TypeDef *i2c); 276 void I2C_BusFreqSet(I2C_TypeDef *i2c, 280 void I2C_Enable(I2C_TypeDef *i2c, bool enable); 281 void I2C_Init(I2C_TypeDef *i2c, const I2C_Init_TypeDef *init); 294 __STATIC_INLINE void I2C_IntClear(I2C_TypeDef *i2c, uint32_t flags) in I2C_IntClear() argument 297 i2c->IF_CLR = flags; in I2C_IntClear() 299 i2c->IFC = flags; in I2C_IntClear() 314 __STATIC_INLINE void I2C_IntDisable(I2C_TypeDef *i2c, uint32_t flags) in I2C_IntDisable() argument 317 i2c->IEN_CLR = flags; in I2C_IntDisable() 319 i2c->IEN &= ~(flags); in I2C_IntDisable() [all …]
|
| /hal_silabs-latest/wiseconnect/components/device/silabs/si91x/mcu/drivers/rom_driver/inc/ |
| D | rsi_rom_table_si91x.h | 592 int32_t (*I2Cx_Initialize)(ARM_I2C_SignalEvent_t cb_event, I2C_RESOURCES *i2c); 593 int32_t (*I2Cx_Uninitialize)(I2C_RESOURCES *i2c); 594 int32_t (*I2Cx_PowerControl)(ARM_POWER_STATE state, I2C_RESOURCES *i2c); 596 …Transmit)(uint32_t addr, const uint8_t *data, uint32_t num, bool xfer_pending, I2C_RESOURCES *i2c); 597 …_MasterReceive)(uint32_t addr, uint8_t *data, uint32_t num, bool xfer_pending, I2C_RESOURCES *i2c); 598 int32_t (*I2Cx_SlaveTransmit)(const uint8_t *data, uint32_t num, I2C_RESOURCES *i2c); 599 int32_t (*I2Cx_SlaveReceive)(uint8_t *data, uint32_t num, I2C_RESOURCES *i2c); 600 int32_t (*I2Cx_GetDataCount)(I2C_RESOURCES *i2c); 601 int32_t (*I2Cx_Control)(uint32_t control, uint32_t arg, I2C_RESOURCES *i2c, uint32_t clock); 602 ARM_I2C_STATUS (*I2Cx_GetStatus)(I2C_RESOURCES *i2c); [all …]
|