Type Alias rp2040_pac::i2c0::ic_con::IC_RESTART_EN_R
source · pub type IC_RESTART_EN_R = BitReader<IC_RESTART_EN_A>;
Expand description
Field IC_RESTART_EN
reader - 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
Aliased Type§
struct IC_RESTART_EN_R { /* private fields */ }
Implementations§
source§impl IC_RESTART_EN_R
impl IC_RESTART_EN_R
sourcepub const fn variant(&self) -> IC_RESTART_EN_A
pub const fn variant(&self) -> IC_RESTART_EN_A
Get enumerated values variant
sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Master restart disabled
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Master restart enabled