Enum imxrt_hal::lpi2c::ControllerCommand
source · #[non_exhaustive]pub enum ControllerCommand {
Transmit {
byte: u8,
},
Receive {
count: u8,
},
Stop,
ReceiveAndDiscard {
drop: u8,
},
Start {
addr: u8,
expect: Response,
},
}
Expand description
LPI2C controller commands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transmit
A transmit command.
Receive
A receive command.
Stop
Generate a STOP condition.
ReceiveAndDiscard
Receive and discard.
Start
Fields
Generate a (repeated) start, transmit the
address addr
, and expect the expect
response
from a device.
Implementations§
Trait Implementations§
source§impl Clone for ControllerCommand
impl Clone for ControllerCommand
source§fn clone(&self) -> ControllerCommand
fn clone(&self) -> ControllerCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ControllerCommand
impl Debug for ControllerCommand
source§impl PartialEq for ControllerCommand
impl PartialEq for ControllerCommand
source§fn eq(&self, other: &ControllerCommand) -> bool
fn eq(&self, other: &ControllerCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ControllerCommand
impl Eq for ControllerCommand
impl StructuralEq for ControllerCommand
impl StructuralPartialEq for ControllerCommand
Auto Trait Implementations§
impl RefUnwindSafe for ControllerCommand
impl Send for ControllerCommand
impl Sync for ControllerCommand
impl Unpin for ControllerCommand
impl UnwindSafe for ControllerCommand
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