Enum rp2040_pac::i2c0::ic_data_cmd::FIRST_DATA_BYTE_A
source · pub enum FIRST_DATA_BYTE_A {
INACTIVE = 0,
ACTIVE = 1,
}
Expand description
Indicates the first data byte received after the address phase for receive transfer in Master receiver or Slave receiver mode.
Reset value : 0x0
NOTE: In case of APB_DATA_WIDTH=8,
-
The user has to perform two APB Reads to IC_DATA_CMD in order to get status on 11 bit.
-
In order to read the 11 bit, the user has to perform the first data byte read [7:0] (offset 0x10) and then perform the second read [15:8] (offset 0x11) in order to know the status of 11 bit (whether the data received in previous read is a first data byte or not).
-
The 11th bit is an optional read field, user can ignore 2nd byte read [15:8] (offset 0x11) if not interested in FIRST_DATA_BYTE status.
Value on reset: 0
Variants§
Trait Implementations§
source§impl Clone for FIRST_DATA_BYTE_A
impl Clone for FIRST_DATA_BYTE_A
source§fn clone(&self) -> FIRST_DATA_BYTE_A
fn clone(&self) -> FIRST_DATA_BYTE_A
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FIRST_DATA_BYTE_A
impl Debug for FIRST_DATA_BYTE_A
source§impl From<FIRST_DATA_BYTE_A> for bool
impl From<FIRST_DATA_BYTE_A> for bool
source§fn from(variant: FIRST_DATA_BYTE_A) -> Self
fn from(variant: FIRST_DATA_BYTE_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for FIRST_DATA_BYTE_A
impl PartialEq for FIRST_DATA_BYTE_A
impl Copy for FIRST_DATA_BYTE_A
impl Eq for FIRST_DATA_BYTE_A
impl StructuralPartialEq for FIRST_DATA_BYTE_A
Auto Trait Implementations§
impl Freeze for FIRST_DATA_BYTE_A
impl RefUnwindSafe for FIRST_DATA_BYTE_A
impl Send for FIRST_DATA_BYTE_A
impl Sync for FIRST_DATA_BYTE_A
impl Unpin for FIRST_DATA_BYTE_A
impl UnwindSafe for FIRST_DATA_BYTE_A
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)