Module esp32::i2c0::sr

source ·
Expand description

Structs

Register SR reader
This register you can read. See API.

Type Definitions

Field ACK_REC reader - This register stores the value of ACK bit.
Field ARB_LOST reader - when I2C lost control of SDA line this register changes to high level.
Field BUS_BUSY reader - 1:I2C bus is busy transferring data. 0:I2C bus is in idle state.
Field BYTE_TRANS reader - This register changes to high level when one byte is transferred.
Field RXFIFO_CNT reader - This register represent the amount of data need to send.
Field SCL_MAIN_STATE_LAST reader - This register stores the value of state machine for i2c module. 3’h0: SCL_MAIN_IDLE 3’h1: SCL_ADDRESS_SHIFT 3’h2: SCL_ACK_ADDRESS 3’h3: SCL_RX_DATA 3’h4 SCL_TX_DATA 3’h5:SCL_SEND_ACK 3’h6:SCL_WAIT_ACK
Field SCL_STATE_LAST reader - This register stores the value of state machine to produce SCL. 3’h0: SCL_IDLE 3’h1:SCL_START 3’h2:SCL_LOW_EDGE 3’h3: SCL_LOW 3’h4:SCL_HIGH_EDGE 3’h5:SCL_HIGH 3’h6:SCL_STOP
Field SLAVE_ADDRESSED reader - when configured as i2c slave and the address send by master is equal to slave’s address then this bit will be high level.
Field SLAVE_RW reader - when in slave mode 1: master read slave 0: master write slave.
Field TIME_OUT reader - when I2C takes more than time_out_reg clocks to receive a data then this register changes to high level.
Field TXFIFO_CNT reader - This register stores the amount of received data in ram.