Type Alias R

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

Register STATUS reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn ack_rec(&self) -> ACK_REC_R

Bit 0 - ack response

Source

pub fn slave_rw(&self) -> SLAVE_RW_R

Bit 1 - slave read or write

Source

pub fn arb_lost(&self) -> ARB_LOST_R

Bit 2 - arbitration is lost

Source

pub fn bus_busy(&self) -> BUS_BUSY_R

Bit 3 - bus is busy

Source

pub fn slave_addressed(&self) -> SLAVE_ADDRESSED_R

Bit 4 - slave reg sub address

Source

pub fn byte_trans(&self) -> BYTE_TRANS_R

Bit 5 - One byte transit done

Source

pub fn op_cnt(&self) -> OP_CNT_R

Bits 6:7 - 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