Enum lpc81x_pac::lpc812::i2c0::stat::MSTPENDING_A
source · pub enum MSTPENDING_A {
IN_PROGRESS,
PENDING,
}
Expand description
Master Pending. Indicates that the Master is waiting to continue communication on the I2C-bus (pending) or is idle. When the master is pending, the MSTSTATE bits indicate what type of software service if any the master expects. This flag will cause an interrupt when set if, enabled via the INTENSET register. The MSTPENDING flag is not set when the DMA is handling an event (if the MSTDMA bit in the MSTCTL register is set). If the master is in the idle state, and no communication is needed, mask this interrupt.
Value on reset: 1
Variants§
IN_PROGRESS
0: In progress. Communication is in progress and the Master function is busy and cannot currently accept a command.
PENDING
1: Pending. The Master function needs software service or is in the idle state. If the master is not in the idle state, it is waiting to receive or transmit data or the NACK bit.
Trait Implementations§
source§impl Clone for MSTPENDING_A
impl Clone for MSTPENDING_A
source§fn clone(&self) -> MSTPENDING_A
fn clone(&self) -> MSTPENDING_A
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more