pub enum State {
Idle,
RxReady,
TxReady,
NackAddress,
NackData,
}Expand description
The state of an I2C instance set to master mode
Variants§
Idle
The peripheral is currently idle
A new transaction can be started.
RxReady
Data has been received and is available to be read
A read transaction has previously been initiated, and has been acknowledged by the slave.
TxReady
Data can be transmitted
A write transaction has previously been initiated, and has been acknowledged by the slave.
NackAddress
Slave has sent NACK in response to an address
NackData
Slave has sent NACK in response to data
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more