Type Alias R

Source
pub type R = R<STATUS_SPEC>;
Expand description

Register STATUS reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn ack_rec(&self) -> ACK_REC_R

Bit 0 - The received ACK value. 0: ACK. 1: NACK.

Source

pub fn slave_rw(&self) -> SLAVE_RW_R

Bit 1 - 0: master writes to slave. 1: master reads from slave.

Source

pub fn arb_lost(&self) -> ARB_LOST_R

Bit 2 - When the RTC I2C loses control of SCL line, the register changes to 1.

Source

pub fn bus_busy(&self) -> BUS_BUSY_R

Bit 3 - 0: RTC I2C bus is in idle state. 1: RTC I2C bus is busy transferring data.

Source

pub fn slave_addressed(&self) -> SLAVE_ADDRESSED_R

Bit 4 - When the address sent by the master matches the address of the slave, then this bit will be set.

Source

pub fn byte_trans(&self) -> BYTE_TRANS_R

Bit 5 - This field changes to 1 when one byte is transferred.

Source

pub fn op_cnt(&self) -> OP_CNT_R

Bits 6:7 - Indicate which operation is working.

Source

pub fn shift(&self) -> SHIFT_R

Bits 16:23 - shifter content

Source

pub fn scl_main_state_last(&self) -> SCL_MAIN_STATE_LAST_R

Bits 24:26 - i2c last main status

Source

pub fn scl_state_last(&self) -> SCL_STATE_LAST_R

Bits 28:30 - scl last status