ChibiOS/HAL
6.1.0
|
PLATFORM I2C subsystem low level driver header. More...
Go to the source code of this file.
Data Structures | |
struct | I2CConfig |
Type of I2C driver configuration structure. More... | |
struct | I2CDriver |
Structure representing an I2C driver. More... | |
Macros | |
#define | i2c_lld_get_errors(i2cp) ((i2cp)->errors) |
Get errors from I2C driver. More... | |
PLATFORM configuration options | |
#define | PLATFORM_I2C_USE_I2C1 FALSE |
I2C1 driver enable switch. More... | |
Typedefs | |
typedef uint16_t | i2caddr_t |
Type representing an I2C address. More... | |
typedef uint32_t | i2cflags_t |
Type of I2C Driver condition flags. More... | |
typedef struct I2CDriver | I2CDriver |
Type of a structure representing an I2C driver. More... | |
Functions | |
void | i2c_lld_init (void) |
Low level I2C driver initialization. More... | |
void | i2c_lld_start (I2CDriver *i2cp) |
Configures and activates the I2C peripheral. More... | |
void | i2c_lld_stop (I2CDriver *i2cp) |
Deactivates the I2C peripheral. More... | |
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. More... | |
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. More... | |
PLATFORM I2C subsystem low level driver header.
Definition in file hal_i2c_lld.h.