pub enum FrameFormat {
CPOL0_CPHA0,
CPOL0_CPHA1,
CPOL1_CPHA0,
CPOL1_CPHA1,
TI_SSI,
Microwire,
}Expand description
Defines the SPI frame format.
Variants§
CPOL0_CPHA0
Clock Polarity 0, Clock Phase 0 (default)
CPOL0_CPHA1
Clock Polarity 0, Clock Phase 1
CPOL1_CPHA0
Clock Polarity 1, Clock Phase 0
CPOL1_CPHA1
Clock Polarity 1, Clock Phase 1
TI_SSI
Texas Instruments Frame Format
Microwire
National Semiconductor Microwire Frame Format
Trait Implementations§
Source§impl Clone for FrameFormat
impl Clone for FrameFormat
Source§fn clone(&self) -> FrameFormat
fn clone(&self) -> FrameFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameFormat
impl Debug for FrameFormat
Source§impl PartialEq for FrameFormat
impl PartialEq for FrameFormat
impl Copy for FrameFormat
impl Eq for FrameFormat
impl StructuralPartialEq for FrameFormat
Auto Trait Implementations§
impl Freeze for FrameFormat
impl RefUnwindSafe for FrameFormat
impl Send for FrameFormat
impl Sync for FrameFormat
impl Unpin for FrameFormat
impl UnwindSafe for FrameFormat
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