Data structures for I2C driver. More...
Data Structures | |
| struct | i2c_controller_config_t |
| I²C controller configuration structure. More... | |
| struct | i2c_target_config_t |
| I²C target configuration structure. More... | |
| struct | i2c_blocking_config_t |
| Blocking transfer configuration. More... | |
| struct | i2c_nonblocking_config_t |
| Non-blocking transfer configuration. More... | |
Typedefs | |
| typedef void(* | i2c_event_cb_t) (i2c_instance_en id, i2c_event_en event, void *user_data) |
| I²C event callback. | |
Data structures for I2C driver.
| typedef void(* i2c_event_cb_t) (i2c_instance_en id, i2c_event_en event, void *user_data) |
I²C event callback.
This callback is invoked on transfer-completion, error, or target events.
| id | I²C Instance ID. |
| event | Event code (see i2c_event_en). |
| user_data | Pointer to the user_data |