Enum Cmd
#[repr(u8)]pub enum Cmd {
_000 = 0,
_001 = 1,
_010 = 2,
_011 = 3,
_100 = 4,
_101 = 5,
_110 = 6,
_111 = 7,
}Expand description
Command Data
Value on reset: 0
Variants§
_000 = 0
0: Transmit DATA[7:0].
_001 = 1
1: Receive (DATA[7:0] + 1) bytes.
_010 = 2
2: Generate STOP condition.
_011 = 3
3: Receive and discard (DATA[7:0] + 1) bytes.
_100 = 4
4: Generate (repeated) START and transmit address in DATA[7:0].
_101 = 5
5: Generate (repeated) START and transmit address in DATA[7:0]. This transfer expects a NACK to be returned.
_110 = 6
6: Generate (repeated) START and transmit address in DATA[7:0] using high speed mode.
_111 = 7
7: Generate (repeated) START and transmit address in DATA[7:0] using high speed mode. This transfer expects a NACK to be returned.
Trait Implementations§
impl Copy for Cmd
impl Eq for Cmd
impl IsEnum for Cmd
impl StructuralPartialEq for Cmd
Auto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
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