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
source§fn eq(&self, other: &IC_RESTART_EN_A) -> bool
fn eq(&self, other: &IC_RESTART_EN_A) -> bool
self
and other
values to be equal, and is used
by ==
.