Enum rp2040_pac::i2c0::ic_data_cmd::RESTART_A
source · pub enum RESTART_A {
DISABLE = 0,
ENABLE = 1,
}
Expand description
This bit controls whether a RESTART is issued before the byte is sent or received.
1 - If IC_RESTART_EN is 1, a RESTART is issued before the data is sent/received (according to the value of CMD), regardless of whether or not the transfer direction is changing from the previous command; if IC_RESTART_EN is 0, a STOP followed by a START is issued instead.
0 - If IC_RESTART_EN is 1, a RESTART is issued only if the transfer direction is changing from the previous command; if IC_RESTART_EN is 0, a STOP followed by a START is issued instead.
Reset value: 0x0
Value on reset: 0
Variants§
DISABLE = 0
0: Don’t Issue RESTART before this command
ENABLE = 1
1: Issue RESTART before this command
Trait Implementations§
impl Copy for RESTART_A
impl Eq for RESTART_A
impl StructuralPartialEq for RESTART_A
Auto Trait Implementations§
impl Freeze for RESTART_A
impl RefUnwindSafe for RESTART_A
impl Send for RESTART_A
impl Sync for RESTART_A
impl Unpin for RESTART_A
impl UnwindSafe for RESTART_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
)