pub enum ClockPolarity {
IdleLow,
IdleHigh,
}
Expand description
Clock polarity (CPOL) defines whether the SPI clock is high or low when idle.
Variants§
IdleLow
The clock is low when the SPI bus is not active. This is CPOL = 0.
IdleHigh
The clock is high when the SPI bus is not active. This is CPOL = 1.
Trait Implementations§
Source§impl Clone for ClockPolarity
impl Clone for ClockPolarity
Source§fn clone(&self) -> ClockPolarity
fn clone(&self) -> ClockPolarity
Returns a copy 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 ClockPolarity
impl Debug for ClockPolarity
Source§impl PartialEq for ClockPolarity
impl PartialEq for ClockPolarity
impl Copy for ClockPolarity
impl StructuralPartialEq for ClockPolarity
Auto Trait Implementations§
impl Freeze for ClockPolarity
impl RefUnwindSafe for ClockPolarity
impl Send for ClockPolarity
impl Sync for ClockPolarity
impl Unpin for ClockPolarity
impl UnwindSafe for ClockPolarity
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