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 duplicate 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
impl Copy for SpiCommMode
impl StructuralPartialEq for SpiCommMode
Auto Trait Implementations§
impl Freeze for SpiCommMode
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