#[repr(u8)]pub enum STATE_A {
IDLE = 0,
WAIT = 1,
START = 2,
ADDR = 3,
ADDRACK = 4,
DATA = 5,
DATAACK = 6,
}
Expand description
Transmission State
Value on reset: 0
Variants§
IDLE = 0
0: No transmission is being performed.
WAIT = 1
1: Waiting for idle. Will send a start condition as soon as the bus is idle.
START = 2
2: Start transmitted or received
ADDR = 3
3: Address transmitted or received
ADDRACK = 4
4: Address ack/nack transmitted or received
DATA = 5
5: Data transmitted or received
DATAACK = 6
6: Data ack/nack transmitted or received
Trait Implementations§
impl Copy for STATE_A
impl StructuralPartialEq for STATE_A
Auto Trait Implementations§
impl Freeze for STATE_A
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§
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