Lines Matching refs:i2c
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()
339 __STATIC_INLINE void I2C_IntEnable(I2C_TypeDef *i2c, uint32_t flags) in I2C_IntEnable() argument
342 i2c->IEN_SET = flags; in I2C_IntEnable()
344 i2c->IEN |= flags; in I2C_IntEnable()
362 __STATIC_INLINE uint32_t I2C_IntGet(I2C_TypeDef *i2c) in I2C_IntGet() argument
364 return i2c->IF; in I2C_IntGet()
384 __STATIC_INLINE uint32_t I2C_IntGetEnabled(I2C_TypeDef *i2c) in I2C_IntGetEnabled() argument
388 ien = i2c->IEN; in I2C_IntGetEnabled()
389 return i2c->IF & ien; in I2C_IntGetEnabled()
403 __STATIC_INLINE void I2C_IntSet(I2C_TypeDef *i2c, uint32_t flags) in I2C_IntSet() argument
406 i2c->IF_SET = flags; in I2C_IntSet()
408 i2c->IFS = flags; in I2C_IntSet()
412 void I2C_Reset(I2C_TypeDef *i2c);
431 __STATIC_INLINE uint8_t I2C_SlaveAddressGet(I2C_TypeDef *i2c) in I2C_SlaveAddressGet() argument
433 return ((uint8_t)(i2c->SADDR)); in I2C_SlaveAddressGet()
453 __STATIC_INLINE void I2C_SlaveAddressSet(I2C_TypeDef *i2c, uint8_t addr) in I2C_SlaveAddressSet() argument
455 i2c->SADDR = (uint32_t)addr & 0xfe; in I2C_SlaveAddressSet()
481 __STATIC_INLINE uint8_t I2C_SlaveAddressMaskGet(I2C_TypeDef *i2c) in I2C_SlaveAddressMaskGet() argument
483 return ((uint8_t)(i2c->SADDRMASK)); in I2C_SlaveAddressMaskGet()
509 __STATIC_INLINE void I2C_SlaveAddressMaskSet(I2C_TypeDef *i2c, uint8_t mask) in I2C_SlaveAddressMaskSet() argument
511 i2c->SADDRMASK = (uint32_t)mask & 0xfe; in I2C_SlaveAddressMaskSet()
514 I2C_TransferReturn_TypeDef I2C_Transfer(I2C_TypeDef *i2c);
515 I2C_TransferReturn_TypeDef I2C_TransferInit(I2C_TypeDef *i2c,