Expand description
Describe I2C work status.
Structs
- Register
SRreader - Describe I2C work status.
Type Definitions
- Field
ARB_LOSTreader - When the I2C controller loses control of SCL line, this register changes to 1. - Field
BUS_BUSYreader - 1: the I2C bus is busy transferring data; 0: the I2C bus is in idle state. - Field
RESP_RECreader - The received ACK value in master mode or slave mode. 0: ACK, 1: NACK. - Field
RXFIFO_CNTreader - This field represents the amount of data needed to be sent. - Field
SCL_MAIN_STATE_LASTreader - This field indicates the states of the I2C module state machine. 0: Idle; 1: Address shift; 2: ACK address; 3: Rx data; 4: Tx data; 5: Send ACK; 6: Wait ACK - Field
SCL_STATE_LASTreader - This field indicates the states of the state machine used to produce SCL. 0: Idle; 1: Start; 2: Negative edge; 3: Low; 4: Positive edge; 5: High; 6: Stop - Field
SLAVE_ADDRESSEDreader - When configured as an I2C Slave, and the address sent by the master is equal to the address of the slave, then this bit will be of high level. - Field
SLAVE_RWreader - When in slave mode, 1: master reads from slave; 0: master writes to slave. - Field
STRETCH_CAUSEreader - The cause of stretching SCL low in slave mode. 0: stretching SCL low at the beginning of I2C read data state. 1: stretching SCL low when I2C Tx FIFO is empty in slave mode. 2: stretching SCL low when I2C Rx FIFO is full in slave mode. - Field
TXFIFO_CNTreader - This field stores the amount of received data in RAM.