Enum Spimode
#[repr(u8)]pub enum Spimode {
Mode0 = 0,
Mode3 = 1,
}Variants§
Mode0 = 0
Mode 0: Data are captured on the clock rising edge and data is output on a falling edge. Base level of clock is 0 (CPOL=0, CPHA=0).
Mode3 = 1
Mode 3: Data are captured on the clock rising edge and data is output on a falling edge. Base level of clock is 1 (CPOL=1, CPHA=1).
Implementations§
Trait Implementations§
impl Copy for Spimode
impl Eq for Spimode
§impl Ord for Spimode
impl Ord for Spimode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for Spimode
impl PartialOrd for Spimode
impl StructuralPartialEq for Spimode
Auto Trait Implementations§
impl Freeze for Spimode
impl RefUnwindSafe for Spimode
impl Send for Spimode
impl Sync for Spimode
impl Unpin for Spimode
impl UnsafeUnpin for Spimode
impl UnwindSafe for Spimode
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