i2c_slave_config_t struct
I2C slave specific configurations
Fields
I2C port number, `-1` for auto selecting.
SDA IO number used by I2C bus.
SCL IO number used by I2C bus.
Depth of internal transfer ringbuffer, increase this value can support more transfers pending in the background.
I2C slave address in bit length.
I2C interrupt priority, if set to 0, driver will select the default priority (1,2,3).
struct {
#if SOC_I2C_SLAVE_CAN_GET_STRETCH_CAUSE
uint32_t stretch_en: 1;
#endif
#if SOC_I2C_SLAVE_SUPPORT_BROADCAST
uint32_t broadcast_en: 1;
#endif
#if SOC_I2C_SLAVE_SUPPORT_I2CRAM_ACCESS
uint32_t access_ram_en: 1;
#endif
#if SOC_I2C_SLAVE_SUPPORT_SLAVE_UNMATCH
uint32_t slave_unmatch_en: 1;
#endif
uint32_t allow_pd: 1;
}
I2C slave config flags.
![]()
typedef struct {![]()
typedef struct {![]()
} i2c_slave_config_t;![]()
} i2c_slave_config_t;