Enum rp2040_pac::i2c0::ic_con::IC_RESTART_EN_A
source · pub enum IC_RESTART_EN_A {
DISABLED = 0,
ENABLED = 1,
}
Expand description
Determines whether RESTART conditions may be sent when acting as a master. Some older slaves do not support handling RESTART conditions; however, RESTART conditions are used in several DW_apb_i2c operations. When RESTART is disabled, the master is prohibited from performing the following functions: - Sending a START BYTE - Performing any high-speed mode operation - High-speed mode operation - Performing direction changes in combined format mode - Performing a read operation with a 10-bit address By replacing RESTART condition followed by a STOP and a subsequent START condition, split operations are broken down into multiple DW_apb_i2c transfers. If the above operations are performed, it will result in setting bit 6 (TX_ABRT) of the IC_RAW_INTR_STAT register.
Reset value: ENABLED
Value on reset: 1
Variants§
Trait Implementations§
source§impl Clone for IC_RESTART_EN_A
impl Clone for IC_RESTART_EN_A
source§fn clone(&self) -> IC_RESTART_EN_A
fn clone(&self) -> IC_RESTART_EN_A
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IC_RESTART_EN_A
impl Debug for IC_RESTART_EN_A
source§impl From<IC_RESTART_EN_A> for bool
impl From<IC_RESTART_EN_A> for bool
source§fn from(variant: IC_RESTART_EN_A) -> Self
fn from(variant: IC_RESTART_EN_A) -> Self
source§impl PartialEq for IC_RESTART_EN_A
impl PartialEq for IC_RESTART_EN_A
impl Copy for IC_RESTART_EN_A
impl Eq for IC_RESTART_EN_A
impl StructuralPartialEq for IC_RESTART_EN_A
Auto Trait Implementations§
impl Freeze for IC_RESTART_EN_A
impl RefUnwindSafe for IC_RESTART_EN_A
impl Send for IC_RESTART_EN_A
impl Sync for IC_RESTART_EN_A
impl Unpin for IC_RESTART_EN_A
impl UnwindSafe for IC_RESTART_EN_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
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)
clone_to_uninit
)