#[repr(u8)]pub enum Sckpolarity {
POS_EDGE = 0,
NEG_EDGE = 1,
}Variants§
POS_EDGE = 0
TX data is written to the SDOUT pin on the falling edge of SCK, ready to be received on the rising edge of SCK.
NEG_EDGE = 1
TX data is written to the SDOUT pin on the rising edge of SCK, ready to be received on the falling edge of SCK.
Implementations§
Source§impl Sckpolarity
impl Sckpolarity
Trait Implementations§
Source§impl Clone for Sckpolarity
impl Clone for Sckpolarity
Source§fn clone(&self) -> Sckpolarity
fn clone(&self) -> Sckpolarity
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 Sckpolarity
impl Debug for Sckpolarity
Source§impl From<Sckpolarity> for u8
impl From<Sckpolarity> for u8
Source§fn from(val: Sckpolarity) -> u8
fn from(val: Sckpolarity) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Sckpolarity
impl From<u8> for Sckpolarity
Source§fn from(val: u8) -> Sckpolarity
fn from(val: u8) -> Sckpolarity
Converts to this type from the input type.
Source§impl Ord for Sckpolarity
impl Ord for Sckpolarity
Source§fn cmp(&self, other: &Sckpolarity) -> Ordering
fn cmp(&self, other: &Sckpolarity) -> Ordering
1.21.0 · 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
Source§impl PartialEq for Sckpolarity
impl PartialEq for Sckpolarity
Source§impl PartialOrd for Sckpolarity
impl PartialOrd for Sckpolarity
impl Copy for Sckpolarity
impl Eq for Sckpolarity
impl StructuralPartialEq for Sckpolarity
Auto Trait Implementations§
impl Freeze for Sckpolarity
impl RefUnwindSafe for Sckpolarity
impl Send for Sckpolarity
impl Sync for Sckpolarity
impl Unpin for Sckpolarity
impl UnwindSafe for Sckpolarity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)