#[repr(u8)]pub enum Cmd {
TRANSMIT = 0,
RECEIVE = 1,
STOP = 2,
RECEIVE_AND_DISCARD = 3,
START = 4,
START_EXPECT_NACK = 5,
START_HS = 6,
START_HS_EXPECT_NACK = 7,
}Variants§
TRANSMIT = 0
Transmit value in DATA[7:0]
RECEIVE = 1
Receive (DATA[7:0] + 1) bytes.
STOP = 2
Generate Stop condition on I2C bus.
RECEIVE_AND_DISCARD = 3
Receive and discard (DATA[7:0] + 1) bytes.
START = 4
Generate (repeated) Start on the I2C bus and transmit the address in DATA[7:0]
START_EXPECT_NACK = 5
Generate (repeated) Start on the I2C bus and transmit the address in DATA[7:0] expecting a NACK response
START_HS = 6
Generate (repeated) Start on the I2C bus and transmit the address in DATA[7:0] using HS mode
START_HS_EXPECT_NACK = 7
Generate (repeated) Start on the I2C bus and transmit the address in DATA[7:0] using HS mode expecting a NACK response
Implementations§
Trait Implementations§
Source§impl Ord for Cmd
impl Ord for Cmd
Source§impl PartialOrd for Cmd
impl PartialOrd for Cmd
impl Copy for Cmd
impl Eq 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