pub type R = R<SR_SPEC>;
Expand description
Register SR
reader
Aliased Type§
pub struct R { /* private fields */ }
Implementations§
Source§impl R
impl R
Sourcepub fn resp_rec(&self) -> RESP_REC_R
pub fn resp_rec(&self) -> RESP_REC_R
Bit 0 - The received ACK value in master mode or slave mode. 0: ACK, 1: NACK.
Sourcepub fn arb_lost(&self) -> ARB_LOST_R
pub fn arb_lost(&self) -> ARB_LOST_R
Bit 3 - When the I2C controller loses control of SCL line, this register changes to 1.
Sourcepub fn bus_busy(&self) -> BUS_BUSY_R
pub fn bus_busy(&self) -> BUS_BUSY_R
Bit 4 - 1: the I2C bus is busy transferring data, 0: the I2C bus is in idle state.
Sourcepub fn rxfifo_cnt(&self) -> RXFIFO_CNT_R
pub fn rxfifo_cnt(&self) -> RXFIFO_CNT_R
Bits 8:12 - This field represents the amount of data needed to be sent.
Sourcepub fn txfifo_cnt(&self) -> TXFIFO_CNT_R
pub fn txfifo_cnt(&self) -> TXFIFO_CNT_R
Bits 18:22 - This field stores the amount of received data in RAM.
Sourcepub fn scl_main_state_last(&self) -> SCL_MAIN_STATE_LAST_R
pub fn scl_main_state_last(&self) -> SCL_MAIN_STATE_LAST_R
Bits 24:26 - 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
Sourcepub fn scl_state_last(&self) -> SCL_STATE_LAST_R
pub fn scl_state_last(&self) -> SCL_STATE_LAST_R
Bits 28:30 - 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