Enum stm32_hal2::spi::SpiCommMode
source · [−]pub enum SpiCommMode {
FullDuplex,
HalfDuplex,
TransmitOnly,
ReceiveOnly,
}
Expand description
Select the duplex communication mode between the 2 devices. Sets CR1
register, BIDIMODE
,
and RXONLY
fields.
Variants
FullDuplex
HalfDuplex
TransmitOnly
Simplex Transmit only. (Cfg same as Full Duplex, but ignores input)
ReceiveOnly
Simplex Receive only.
Trait Implementations
sourceimpl Clone for SpiCommMode
impl Clone for SpiCommMode
sourcefn clone(&self) -> SpiCommMode
fn clone(&self) -> SpiCommMode
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 moresourceimpl PartialEq<SpiCommMode> for SpiCommMode
impl PartialEq<SpiCommMode> for SpiCommMode
sourcefn eq(&self, other: &SpiCommMode) -> bool
fn eq(&self, other: &SpiCommMode) -> bool
impl Copy for SpiCommMode
impl StructuralPartialEq for SpiCommMode
Auto Trait Implementations
impl RefUnwindSafe for SpiCommMode
impl Send for SpiCommMode
impl Sync for SpiCommMode
impl Unpin for SpiCommMode
impl UnwindSafe for SpiCommMode
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