Enum stm32_metapac::spi::vals::Comm
#[repr(u8)]pub enum Comm {
FULLDUPLEX = 0,
TRANSMITTER = 1,
RECEIVER = 2,
HALFDUPLEX = 3,
}
Variants§
FULLDUPLEX = 0
Full duplex
TRANSMITTER = 1
Simplex transmitter only
RECEIVER = 2
Simplex receiver only
HALFDUPLEX = 3
Half duplex
Implementations§
Trait Implementations§
§impl Ord for Comm
impl Ord for Comm
§impl PartialOrd for Comm
impl PartialOrd for Comm
§fn partial_cmp(&self, other: &Comm) -> Option<Ordering>
fn partial_cmp(&self, other: &Comm) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Comm
impl Eq for Comm
impl StructuralEq for Comm
impl StructuralPartialEq for Comm
Auto Trait Implementations§
impl RefUnwindSafe for Comm
impl Send for Comm
impl Sync for Comm
impl Unpin for Comm
impl UnwindSafe for Comm
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