Enum stm32_metapac::adf::vals::Sitfmod
#[repr(u8)]pub enum Sitfmod {
MASTERSPI = 0,
NORMALSPI = 1,
MANCHESTERFALLING = 2,
MANCHESTERRISING = 3,
}
Expand description
Serial interface mode. This bitfield is set and cleared by software. It is used to select the serial interface mode.
Variants§
MASTERSPI = 0
LF_MASTER SPI mode.
NORMALSPI = 1
Normal SPI mode.
MANCHESTERFALLING = 2
Manchester mode rising edge = logic 0, falling edge = logic 1.
MANCHESTERRISING = 3
Manchester mode rising edge = logic 1, falling edge = logic 0.
Implementations§
Trait Implementations§
§impl Ord for Sitfmod
impl Ord for Sitfmod
§impl PartialOrd for Sitfmod
impl PartialOrd for Sitfmod
§fn partial_cmp(&self, other: &Sitfmod) -> Option<Ordering>
fn partial_cmp(&self, other: &Sitfmod) -> 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 Sitfmod
impl Eq for Sitfmod
impl StructuralEq for Sitfmod
impl StructuralPartialEq for Sitfmod
Auto Trait Implementations§
impl RefUnwindSafe for Sitfmod
impl Send for Sitfmod
impl Sync for Sitfmod
impl Unpin for Sitfmod
impl UnwindSafe for Sitfmod
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