#[repr(u8)]pub enum Cpha {
CHANGE = 0,
CAPTURE = 1,
}Variants§
CHANGE = 0
Change. The SPI captures serial data on the first clock transition of the transfer (when the clock changes away from the rest state). Data is changed on the following edge.
CAPTURE = 1
Capture. The SPI changes serial data on the first clock transition of the transfer (when the clock changes away from the rest state). Data is captured on the following edge.
Implementations§
Trait Implementations§
Source§impl Ord for Cpha
impl Ord for Cpha
Source§impl PartialOrd for Cpha
impl PartialOrd for Cpha
impl Copy for Cpha
impl Eq for Cpha
impl StructuralPartialEq for Cpha
Auto Trait Implementations§
impl Freeze for Cpha
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