Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
i2c_slave_config Struct Reference

Structure describing a device that supports the I2C slave API. More...

#include <i2c.h>

Data Fields

sys_snode_t node
 
uint8_t flags
 
uint16_t address
 
const struct i2c_slave_callbackscallbacks
 

Detailed Description

Structure describing a device that supports the I2C slave API.

Instances of this are passed to the i2c_slave_register() and i2c_slave_unregister() functions to indicate addition and removal of a slave 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_slave_register().

Field Documentation

◆ address

uint16_t i2c_slave_config::address

Address for this slave device

◆ callbacks

const struct i2c_slave_callbacks* i2c_slave_config::callbacks

Callback functions

◆ flags

uint8_t i2c_slave_config::flags

Flags for the slave device defined by I2C_SLAVE_FLAGS_* constants

◆ node

sys_snode_t i2c_slave_config::node

Private, do not modify


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