I2C Interface

group I2CInterface

Functions

int csp_i2c_init(uint8_t opt_addr, int handle, int speed)

Capture I2C RX events for CSP.

Return
csp_error.h code
Parameters
  • opt_addr: local i2c address
  • handle: which i2c device to use
  • speed: interface speed in kHz (normally 100 or 400)

void csp_i2c_rx(i2c_frame_t *frame, void *pxTaskWoken)

Variables

csp_iface_t csp_if_i2c