Type Alias rp2040_pac::i2c0::ic_raw_intr_stat::RESTART_DET_R
source · pub type RESTART_DET_R = BitReader<RESTART_DET_A>;
Expand description
Field RESTART_DET
reader - Indicates whether a RESTART condition has occurred on the I2C interface when DW_apb_i2c is operating in Slave mode and the slave is being addressed. Enabled only when IC_SLV_RESTART_DET_EN=1.
Note: However, in high-speed mode or during a START BYTE transfer, the RESTART comes before the address field as per the I2C protocol. In this case, the slave is not the addressed slave when the RESTART is issued, therefore DW_apb_i2c does not generate the RESTART_DET interrupt.
Reset value: 0x0
Aliased Type§
struct RESTART_DET_R { /* private fields */ }
Implementations§
source§impl RESTART_DET_R
impl RESTART_DET_R
sourcepub const fn variant(&self) -> RESTART_DET_A
pub const fn variant(&self) -> RESTART_DET_A
Get enumerated values variant
sourcepub fn is_inactive(&self) -> bool
pub fn is_inactive(&self) -> bool
RESTART_DET interrupt is inactive