Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Structure describing a device that supports the I2C target API. More...
#include <i2c.h>
Data Fields | |
sys_snode_t | node |
Private, do not modify. | |
uint8_t | flags |
Flags for the target device defined by I2C_TARGET_FLAGS_* constants. | |
uint16_t | address |
Address for this target device. | |
const struct i2c_target_callbacks * | callbacks |
Callback functions. | |
Structure describing a device that supports the I2C target API.
Instances of this are passed to the i2c_target_register() and i2c_target_unregister() functions to indicate addition and removal of a target device, respective.
Fields other than node
must be initialized by the module that implements the device behavior prior to passing the object reference to i2c_target_register().
uint16_t i2c_target_config::address |
Address for this target device.
const struct i2c_target_callbacks* i2c_target_config::callbacks |
Callback functions.
uint8_t i2c_target_config::flags |
Flags for the target device defined by I2C_TARGET_FLAGS_* constants.
sys_snode_t i2c_target_config::node |
Private, do not modify.