Enum lpc845_pac::i2c0::stat::MSTSTATE_A [−][src]
#[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
0: Idle. The Master function is available to be used for a new transaction.
1: Receive ready. Received data available (Master Receiver mode). Address plus Read was previously sent and Acknowledged by slave.
2: Transmit ready. Data can be transmitted (Master Transmitter mode). Address plus Write was previously sent and Acknowledged by slave.
3: NACK Address. Slave NACKed address.
4: NACK Data. Slave NACKed transmitted data.
Trait Implementations
Performs the conversion.