Struct esp32c2_hal::pac::i2c0::comd::R
pub struct R(_);
Expand description
Register COMD%s
reader
Implementations
impl R
impl R
pub fn command(&self) -> FieldReaderRaw<u16, u16>
pub fn command(&self) -> FieldReaderRaw<u16, u16>
Bits 0:13 - This is the content of command 0. 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.
pub fn command_done(&self) -> BitReaderRaw<bool>
pub fn command_done(&self) -> BitReaderRaw<bool>
Bit 31 - When command 0 is done in I2C Master mode, this bit changes to high level.
Methods from Deref<Target = R<COMD_SPEC>>
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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