Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
i2c_target_driver_api Struct Reference

Driver Operations I2C Target driver operations More...

#include <zephyr/drivers/i2c.h>

Data Fields

i2c_target_api_register_t driver_register
  REQ Instructs the I2C Target device to register itself to the I2C Controller.
i2c_target_api_unregister_t driver_unregister
  REQ Instructs the I2C Target device to unregister itself from the I2C Controller.

Detailed Description

Driver Operations I2C Target driver operations

This is the driver API structure any I2C Target 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.

See also
DEVICE_DT_INST_DEFINE()
DEVICE_DT_DEFINE()
DEVICE_API()

Field Documentation

◆ driver_register

i2c_target_api_register_t i2c_target_driver_api::driver_register

REQ Instructs the I2C Target device to register itself to the I2C Controller.

◆ driver_unregister

i2c_target_api_unregister_t i2c_target_driver_api::driver_unregister

REQ Instructs the I2C Target device to unregister itself from the I2C Controller.


The documentation for this struct was generated from the following file: