pub struct R(_);Expand description
Register I2C_COMD2 reader
Implementations§
source§impl R
impl R
sourcepub fn i2c_command2(&self) -> I2C_COMMAND2_R
pub fn i2c_command2(&self) -> I2C_COMMAND2_R
Bits 0:13 - This is the content of command 2. It consists of three parts: op_code is the command, 0: RSTART, 1: WRITE, 2: READ, 3: STOP, 4: END. Byte_num represents the number of bytes that need to be sent or received. ack_check_en, ack_exp and ack are used to control the ACK bit. See I2C cmd structure for more Information.
sourcepub fn i2c_command2_done(&self) -> I2C_COMMAND2_DONE_R
pub fn i2c_command2_done(&self) -> I2C_COMMAND2_DONE_R
Bit 31 - When command 2 is done in I2C Master mode, this bit changes to high Level.
Methods from Deref<Target = R<I2C_COMD2_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