pub enum ClockPhase {
SampleLeading,
SampleTrailing,
}
Expand description
Clock phase (CPHA) defines whether to sample and send data on a leading or trailing clock edge; consult a SPI reference on how CPHA interacts with CPOL.
Variants
SampleLeading
SampleTrailing
Trait Implementations
sourceimpl Clone for ClockPhase
impl Clone for ClockPhase
sourcefn clone(&self) -> ClockPhase
fn clone(&self) -> ClockPhase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClockPhase
impl Debug for ClockPhase
sourceimpl PartialEq<ClockPhase> for ClockPhase
impl PartialEq<ClockPhase> for ClockPhase
impl Copy for ClockPhase
impl StructuralPartialEq for ClockPhase
Auto Trait Implementations
impl RefUnwindSafe for ClockPhase
impl Send for ClockPhase
impl Sync for ClockPhase
impl Unpin for ClockPhase
impl UnwindSafe for ClockPhase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more