RTEMS 6.1-rc4
|
#include <alt_i2c.h>
Data Fields | |
ALT_I2C_ADDR_MODE_t | addr_mode |
uint32_t | addr |
bool | nack_enable |
This type defines a structure for configuration of the I2C controller when it is operating in slave mode.
uint32_t ALT_I2C_SLAVE_CONFIG_s::addr |
The slave address to which the I2C controller responds when acting as a slave.
ALT_I2C_ADDR_MODE_t ALT_I2C_SLAVE_CONFIG_s::addr_mode |
The address mode (7 or 10 bit) when acting as a slave.
bool ALT_I2C_SLAVE_CONFIG_s::nack_enable |
Enable generation of a NACK. when the I2C controller is a slave-receiver. If true, it can only generate a NACK after a data byte is received; hence, the data transfer is aborted and the data received is not pushed onto the receive buffer. When false, it generates NACK/ACK, depending on normal criteria.