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§
source§impl Clone for SpiCommMode
impl Clone for SpiCommMode
source§fn clone(&self) -> SpiCommMode
fn clone(&self) -> SpiCommMode
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 PartialEq for SpiCommMode
impl PartialEq for SpiCommMode
source§fn eq(&self, other: &SpiCommMode) -> bool
fn eq(&self, other: &SpiCommMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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