Enum esp_idf_hal::spi::config::Duplex
source · pub enum Duplex {
Full,
Half,
Half3Wire,
}
Expand description
Specify the communication mode with the device
Variants§
Full
Full duplex is the default
Half
Half duplex in some cases
Half3Wire
Use MOSI (=spid) for both sending and receiving data (implies half duplex)
Implementations§
Trait Implementations§
impl Copy for Duplex
impl Eq for Duplex
impl StructuralPartialEq for Duplex
Auto Trait Implementations§
impl Freeze for Duplex
impl RefUnwindSafe for Duplex
impl Send for Duplex
impl Sync for Duplex
impl Unpin for Duplex
impl UnwindSafe for Duplex
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)