Go to the source code of this file.
|
|
typedef enum i2c_slave_event_t | i2c_slave_event_t |
| | I2C slave event types.
|
| |
| typedef void(* | i2c_slave_handler_t) (i2c_inst_t *i2c, i2c_slave_event_t event) |
| | I2C slave event handlerThe event handler will run from the I2C ISR, so it should return quickly (under 25 us at 400 kb/s). Avoid blocking inside the handler and split large data transfers across multiple calls for best results. When sending data to master, up to i2c_get_write_available() bytes can be written without blocking. When receiving data from master, up to 2c_get_read_available() bytes can be read without blocking. More...
|
| |