Enum stm32_hal2::spi::SpiPhase
source · [−]#[repr(u8)]
pub enum SpiPhase {
CaptureOnFirstTransition,
CaptureOnSecondTransition,
}
Expand description
Clock phase. Sets CFGR2 register, CPHA field. Stored in the config as a field of SpiMode
.
Variants
CaptureOnFirstTransition
Data in “captured” on the first clock transition
CaptureOnSecondTransition
Data in “captured” on the second clock transition
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpiPhase
impl Send for SpiPhase
impl Sync for SpiPhase
impl Unpin for SpiPhase
impl UnwindSafe for SpiPhase
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