RTEMS  5.0.0
Data Fields
ALT_I2C_SLAVE_CONFIG_s Struct Reference

#include <alt_i2c.h>

Data Fields

ALT_I2C_ADDR_MODE_t addr_mode
 
uint32_t addr
 
bool nack_enable
 

Detailed Description

This type defines a structure for configuration of the I2C controller when it is operating in slave mode.

Field Documentation

◆ addr

uint32_t ALT_I2C_SLAVE_CONFIG_s::addr

The slave address to which the I2C controller responds when acting as a slave.

◆ addr_mode

ALT_I2C_ADDR_MODE_t ALT_I2C_SLAVE_CONFIG_s::addr_mode

The address mode (7 or 10 bit) when acting as a slave.

◆ nack_enable

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.

  • true = generate NACK after data byte received
  • false = generate NACK/ACK normally

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