|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Driver Operations I2C driver operations More...
#include <zephyr/drivers/i2c.h>
Data Fields | |
| i2c_api_configure_t | configure |
| REQ Configure operation of a host controller. | |
| i2c_api_get_config_t | get_config |
| OPT Get configuration of a host controller. | |
| i2c_api_full_io_t | transfer |
| REQ Perform data transfer to another I2C device in controller mode. | |
| i2c_api_target_register_t | target_register |
| OPT Registers the provided config as Target device of a controller. | |
| i2c_api_target_unregister_t | target_unregister |
| OPT Unregisters the provided config as Target device. | |
| i2c_api_transfer_cb_t | transfer_cb |
| OPT Perform data transfer to another I2C device in controller mode. | |
| i2c_api_iodev_submit | iodev_submit |
| OPT Submit request(s) to an I2C device with RTIO. | |
| i2c_api_recover_bus_t | recover_bus |
| OPT Recover the I2C bus. | |
Driver Operations I2C driver operations
This is the driver API structure any I2C driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.
Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.
| i2c_api_configure_t i2c_driver_api::configure |
REQ Configure operation of a host controller.
| i2c_api_get_config_t i2c_driver_api::get_config |
OPT Get configuration of a host controller.
| i2c_api_iodev_submit i2c_driver_api::iodev_submit |
OPT Submit request(s) to an I2C device with RTIO.
CONFIG_I2C_RTIO. | i2c_api_recover_bus_t i2c_driver_api::recover_bus |
OPT Recover the I2C bus.
| i2c_api_target_register_t i2c_driver_api::target_register |
OPT Registers the provided config as Target device of a controller.
| i2c_api_target_unregister_t i2c_driver_api::target_unregister |
OPT Unregisters the provided config as Target device.
| i2c_api_full_io_t i2c_driver_api::transfer |
REQ Perform data transfer to another I2C device in controller mode.
| i2c_api_transfer_cb_t i2c_driver_api::transfer_cb |
OPT Perform data transfer to another I2C device in controller mode.
CONFIG_I2C_CALLBACK.