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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.