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<SpiCommMode> for SpiCommMode
impl PartialEq<SpiCommMode> 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 ==
.