Enum stm32_hal2::spi::SpiPolarity
source · [−]#[repr(u8)]
pub enum SpiPolarity {
IdleLow,
IdleHigh,
}
Expand description
Clock polarity. Sets CFGR2 register, CPOL field. Stored in the config as a field of SpiMode
.
Variants
IdleLow
Clock signal low when idle
IdleHigh
Clock signal high when idle
Trait Implementations
sourceimpl Clone for SpiPolarity
impl Clone for SpiPolarity
sourcefn clone(&self) -> SpiPolarity
fn clone(&self) -> SpiPolarity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for SpiPolarity
Auto Trait Implementations
impl RefUnwindSafe for SpiPolarity
impl Send for SpiPolarity
impl Sync for SpiPolarity
impl Unpin for SpiPolarity
impl UnwindSafe for SpiPolarity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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