[][src]Type Definition betrusted_pac::i2c::command::R

type R = R<u32, COMMAND>;

Reader of register COMMAND

Methods

impl R[src]

pub fn iack(&self) -> IACK_R[src]

Bit 0 - Interrupt acknowledge; when set, clears a pending interrupt

pub fn resvd(&self) -> RESVD_R[src]

Bits 1:2 - reserved for cross-compatibility with OpenCores drivers

pub fn ack(&self) -> ACK_R[src]

Bit 3 - when a receiver, sent ack (ACK=0) or nack (ACK=1)

pub fn wr(&self) -> WR_R[src]

Bit 4 - write to slave

pub fn rd(&self) -> RD_R[src]

Bit 5 - read from slave

pub fn sto(&self) -> STO_R[src]

Bit 6 - generate stop condition

pub fn sta(&self) -> STA_R[src]

Bit 7 - generate (repeated) start condition