I2CInterface

Functions

int csp_i2c_init (uint8_t opt_addr, int handle, int speed)
 Capture I2C RX events for CSP. More...
 
void csp_i2c_rx (i2c_frame_t *frame, void *pxTaskWoken)
 

Variables

csp_iface_t csp_if_i2c
 

Function Documentation

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

Capture I2C RX events for CSP.

Parameters
opt_addrlocal i2c address
handlewhich i2c device to use
speedinterface speed in kHz (normally 100 or 400)
Returns
csp_error.h code
void csp_i2c_rx ( i2c_frame_t frame,
void *  pxTaskWoken 
)

Variable Documentation

csp_iface_t csp_if_i2c