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

source

pub const fn variant(&self) -> RESTART_DET_A

Get enumerated values variant

source

pub fn is_inactive(&self) -> bool

RESTART_DET interrupt is inactive

source

pub fn is_active(&self) -> bool

RESTART_DET interrupt is active