pub struct W(_);
Expand description
Register COMD5
writer
Implementations
sourceimpl W
impl W
sourcepub fn command5(&mut self) -> COMMAND5_W<'_, 0>
pub fn command5(&mut self) -> COMMAND5_W<'_, 0>
Bits 0:13 - This is the content of command 5. 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 command5_done(&mut self) -> COMMAND5_DONE_W<'_, 31>
pub fn command5_done(&mut self) -> COMMAND5_DONE_W<'_, 31>
Bit 31 - When command 5 is done in I2C Master mode, this bit changes to high level.
Methods from Deref<Target = W<COMD5_SPEC>>
Trait Implementations
sourceimpl From<W<COMD5_SPEC>> for W
impl From<W<COMD5_SPEC>> for W
sourcefn from(writer: W<COMD5_SPEC>) -> Self
fn from(writer: W<COMD5_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more