Functions | |
__STATIC_INLINE void | ll_i2c_set_slave_address (i2c_regs_t *I2Cx, uint32_t slave_addr) |
Configure the slave address for transfer (master mode). More... | |
__STATIC_INLINE uint32_t | ll_i2c_get_slave_address (i2c_regs_t *I2Cx) |
Get the slave address programmed for transfer (master mode). More... | |
__STATIC_INLINE void | ll_i2c_handle_transfer (i2c_regs_t *I2Cx, uint32_t slave_addr, uint32_t slave_addr_size) |
Handles I2Cx communication when starting transfer or during transfer (TC or TCR flag are set). More... | |
__STATIC_INLINE uint8_t | ll_i2c_receive_data8 (i2c_regs_t *I2Cx) |
Read Receive Data register. More... | |
__STATIC_INLINE void | ll_i2c_transmit_data8 (i2c_regs_t *I2Cx, uint8_t data, uint32_t cmd) |
Write in Transmit Data Register . More... | |
__STATIC_INLINE uint32_t ll_i2c_get_slave_address | ( | i2c_regs_t * | I2Cx | ) |
__STATIC_INLINE void ll_i2c_handle_transfer | ( | i2c_regs_t * | I2Cx, |
uint32_t | slave_addr, | ||
uint32_t | slave_addr_size | ||
) |
Handles I2Cx communication when starting transfer or during transfer (TC or TCR flag are set).
Register|BitsName ---------------|--------------- TARGET_ADDR | TAR_ADDR CTRL | CON_10BITADDR_MST
I2Cx | I2C instance. |
slave_addr | Specifies the slave address to be programmed. |
slave_addr_size | This parameter can be one of the following values: |
None. |
Definition at line 3602 of file ll_i2c.h.
References ll_i2c_set_master_addressing_mode().
__STATIC_INLINE uint8_t ll_i2c_receive_data8 | ( | i2c_regs_t * | I2Cx | ) |
__STATIC_INLINE void ll_i2c_set_slave_address | ( | i2c_regs_t * | I2Cx, |
uint32_t | slave_addr | ||
) |
Configure the slave address for transfer (master mode).
Register|BitsName ---------------|--------------- TARGET_ADDR | TAR_ADDR
I2Cx | I2C instance. |
slave_addr | This parameter must be a value between 0x00 and 0x3F. |
None. |
__STATIC_INLINE void ll_i2c_transmit_data8 | ( | i2c_regs_t * | I2Cx, |
uint8_t | data, | ||
uint32_t | cmd | ||
) |
Write in Transmit Data Register .
Register|BitsName ---------------|--------------- DATA_CMD | STOP DATA_CMD | CMD DATA_CMD | DATA
I2Cx | I2C instance. |
data | Value range between 0x00 and 0xFF. |
cmd | This parameter can be one of the following values: |
None. |