pub enum SPIMODE_A {
MODE0 = 0,
MODE3 = 1,
}
Expand description
Select SPI mode.
Value on reset: 0
Variants§
MODE0 = 0
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
1: Mode 3: Data are captured on the clock falling edge and data is output on a rising edge. Base level of clock is 1 (CPOL=1, CPHA=1).
Trait Implementations§
impl Copy for SPIMODE_A
impl StructuralPartialEq for SPIMODE_A
Auto Trait Implementations§
impl Freeze for SPIMODE_A
impl RefUnwindSafe for SPIMODE_A
impl Send for SPIMODE_A
impl Sync for SPIMODE_A
impl Unpin for SPIMODE_A
impl UnwindSafe for SPIMODE_A
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
)