Enum lpc81x_pac::lpc811::i2c0::stat::MSTSTATE_A
source · #[repr(u8)]
pub enum MSTSTATE_A {
IDLE,
RECEIVE_READY,
TRANSMIT_READY,
NACK_ADDRESS,
NACK_DATA,
}
Expand description
Master State code. The master state code reflects the master state when the MSTPENDING bit is set, that is the master is pending or in the idle state. Each value of this field indicates a specific required service for the Master function. All other values are reserved. See Table 400 for details of state values and appropriate responses.
Value on reset: 0
Variants§
IDLE
0: Idle. The Master function is available to be used for a new transaction.
RECEIVE_READY
1: Receive ready. Received data available (Master Receiver mode). Address plus Read was previously sent and Acknowledged by slave.
TRANSMIT_READY
2: Transmit ready. Data can be transmitted (Master Transmitter mode). Address plus Write was previously sent and Acknowledged by slave.
NACK_ADDRESS
3: NACK Address. Slave NACKed address.
NACK_DATA
4: NACK Data. Slave NACKed transmitted data.
Trait Implementations§
source§impl Clone for MSTSTATE_A
impl Clone for MSTSTATE_A
source§fn clone(&self) -> MSTSTATE_A
fn clone(&self) -> MSTSTATE_A
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more