48 #define BOARD_I2C_INTERFACE_0 0 49 #define BOARD_I2C_INTERFACE_1 1 58 #define board_i2c_deselect() board_i2c_select(BOARD_I2C_INTERFACE_0, 0) void board_i2c_shutdown()
Stops the I2C peripheral and restores pins to s/w control.
bool board_i2c_read(uint8_t *data, uint8_t len)
Burst read from an I2C device.
bool board_i2c_write_read(uint8_t *wdata, uint8_t wlen, uint8_t *rdata, uint8_t rlen)
Write and read in one operation.
bool board_i2c_write_single(uint8_t data)
Single write to an I2C device.
bool board_i2c_write(uint8_t *data, uint8_t len)
Burst write to an I2C device.
void board_i2c_select(uint8_t new_interface, uint8_t address)
Select an I2C slave.
void board_i2c_wakeup()
Enables the I2C peripheral with defaults.