pub struct R(_);
Expand description
Register COMD%s
reader
Implementations§
source§impl R
impl R
sourcepub fn command(&self) -> COMMAND_R
pub fn command(&self) -> COMMAND_R
Bits 0:13 - This is the content of command0. It consists of three part. op_code is the command 0: RSTART 1: WRITE 2: READ 3: STOP . 4:END. Byte_num represent the number of data need to be send or data need to be received. ack_check_en ack_exp and ack value are used to control the ack bit.
sourcepub fn command_done(&self) -> COMMAND_DONE_R
pub fn command_done(&self) -> COMMAND_DONE_R
Bit 31 - When command0 is done in I2C Master mode this bit changes to high level.
Methods from Deref<Target = R<COMD_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more