Enum stm32_metapac::spi::vals::Cpha
#[repr(u8)]pub enum Cpha {
FIRSTEDGE = 0,
SECONDEDGE = 1,
}
Variants§
FIRSTEDGE = 0
The first clock transition is the first data capture edge
SECONDEDGE = 1
The second clock transition is the first data capture edge
Implementations§
Trait Implementations§
§impl Ord for Cpha
impl Ord for Cpha
§impl PartialOrd for Cpha
impl PartialOrd for Cpha
§fn partial_cmp(&self, other: &Cpha) -> Option<Ordering>
fn partial_cmp(&self, other: &Cpha) -> 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 Cpha
impl Eq for Cpha
impl StructuralEq for Cpha
impl StructuralPartialEq for Cpha
Auto Trait Implementations§
impl RefUnwindSafe for Cpha
impl Send for Cpha
impl Sync for Cpha
impl Unpin for Cpha
impl UnwindSafe for Cpha
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