Enum stm32_metapac::spi::vals::I2scfg
#[repr(u8)]pub enum I2scfg {
SLAVETX = 0,
SLAVERX = 1,
MASTERTX = 2,
MASTERRX = 3,
}
Variants§
SLAVETX = 0
Slave - transmit
SLAVERX = 1
Slave - receive
MASTERTX = 2
Master - transmit
MASTERRX = 3
Master - receive
Implementations§
Trait Implementations§
§impl Ord for I2scfg
impl Ord for I2scfg
§impl PartialOrd for I2scfg
impl PartialOrd for I2scfg
§fn partial_cmp(&self, other: &I2scfg) -> Option<Ordering>
fn partial_cmp(&self, other: &I2scfg) -> 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 I2scfg
impl Eq for I2scfg
impl StructuralPartialEq for I2scfg
Auto Trait Implementations§
impl Freeze for I2scfg
impl RefUnwindSafe for I2scfg
impl Send for I2scfg
impl Sync for I2scfg
impl Unpin for I2scfg
impl UnwindSafe for I2scfg
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