ChibiOS/HAL 9.0.0
hal_i2c_lld.h File Reference

PLATFORM I2C subsystem low level driver header. More...

Go to the source code of this file.

Data Structures

struct  hal_i2c_config
 I2C driver configuration structure. More...
struct  hal_i2c_driver
 Structure representing an I2C driver. More...

Macros

#define i2c_lld_get_errors(i2cp)
 Get errors from I2C driver.
PLATFORM configuration options
#define PLATFORM_I2C_USE_I2C1   FALSE
 I2C1 driver enable switch.

Typedefs

typedef uint16_t i2caddr_t
 Type representing an I2C address.
typedef uint32_t i2cflags_t
 Type of I2C Driver condition flags.
typedef struct hal_i2c_config I2CConfig
 Type of a structure representing an I2C configuration.
typedef struct hal_i2c_driver I2CDriver
 Type of a structure representing an I2C driver.

Functions

void i2c_lld_init (void)
 Low level I2C driver initialization.
void i2c_lld_start (I2CDriver *i2cp)
 Configures and activates the I2C peripheral.
void i2c_lld_stop (I2CDriver *i2cp)
 Deactivates the I2C peripheral.
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.
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.

Detailed Description

PLATFORM I2C subsystem low level driver header.

Definition in file hal_i2c_lld.h.