#[repr(u8)]
pub enum STATE_A {
IDLE,
WAIT,
START,
ADDR,
ADDRACK,
DATA,
DATAACK,
}
Expand description
Transmission State
Value on reset: 0
Variants
IDLE
0: No transmission is being performed.
WAIT
1: Waiting for idle. Will send a start condition as soon as the bus is idle.
START
2: Start transmitted or received
ADDR
3: Address transmitted or received
ADDRACK
4: Address ack/nack transmitted or received
DATA
5: Data transmitted or received
DATAACK
6: Data ack/nack transmitted or received
Trait Implementations
impl Copy for STATE_A
impl StructuralPartialEq for STATE_A
Auto Trait Implementations
impl RefUnwindSafe for STATE_A
impl Send for STATE_A
impl Sync for STATE_A
impl Unpin for STATE_A
impl UnwindSafe for STATE_A
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more