27#if (HAL_USE_I2C == TRUE) || defined(__DOXYGEN__)
40#if (PLATFORM_I2C_USE_I2C1 == TRUE) || defined(__DOXYGEN__)
67#if PLATFORM_I2C_USE_I2C1 == TRUE
83#if PLATFORM_I2C_USE_I2C1 == TRUE
104#if PLATFORM_I2C_USE_I2C1 == TRUE
105 if (&
I2CD1 == i2cp) {
133 uint8_t *rxbuf,
size_t rxbytes,
168 const uint8_t *txbuf,
size_t txbytes,
169 uint8_t *rxbuf,
size_t rxbytes,
void i2c_lld_stop(I2CDriver *i2cp)
Deactivates the I2C peripheral.
void i2cObjectInit(I2CDriver *i2cp)
Initializes the standard part of a I2CDriver structure.
msg_t i2c_lld_master_receive_timeout(I2CDriver *i2cp, i2caddr_t addr, uint8_t *rxbuf, size_t rxbytes, sysinterval_t timeout)
Receives data via the I2C bus as master.
I2CDriver I2CD1
I2C1 driver identifier.
void i2c_lld_start(I2CDriver *i2cp)
Configures and activates the I2C peripheral.
uint16_t i2caddr_t
Type representing an I2C address.
void i2c_lld_init(void)
Low level I2C driver initialization.
msg_t i2c_lld_master_transmit_timeout(I2CDriver *i2cp, i2caddr_t addr, const uint8_t *txbuf, size_t txbytes, uint8_t *rxbuf, size_t rxbytes, sysinterval_t timeout)
Transmits data via the I2C bus as master.
struct hal_i2c_driver I2CDriver
Type of a structure representing an I2C driver.
int32_t msg_t
Type of a message.
uint32_t sysinterval_t
Type of system time interval.
i2cstate_t state
Driver state.