#[repr(u8)]pub enum SerialInterfaceType {
SpiRisingEdge = 0,
SpiFallingEdge = 1,
ManchesterRising0 = 2,
ManchesterRising1 = 3,
}Expand description
Serial interface type and sampling edge.
Variants§
SpiRisingEdge = 0
SPI mode sampling on the rising edge of the clock
SpiFallingEdge = 1
SPI mode sampling on the falling edge of the clock
ManchesterRising0 = 2
Manchester coded: rising edge = logic 0, falling edge = logic 1
ManchesterRising1 = 3
Manchester coded: rising edge = logic 1, falling edge = logic 0
Trait Implementations§
Source§impl Clone for SerialInterfaceType
impl Clone for SerialInterfaceType
Source§fn clone(&self) -> SerialInterfaceType
fn clone(&self) -> SerialInterfaceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SerialInterfaceType
Source§impl Debug for SerialInterfaceType
impl Debug for SerialInterfaceType
impl Eq for SerialInterfaceType
Source§impl From<InternalSpiMode> for SerialInterfaceType
impl From<InternalSpiMode> for SerialInterfaceType
Source§fn from(value: InternalSpiMode) -> Self
fn from(value: InternalSpiMode) -> Self
Converts to this type from the input type.
Source§impl From<ManchesterMode> for SerialInterfaceType
impl From<ManchesterMode> for SerialInterfaceType
Source§fn from(value: ManchesterMode) -> Self
fn from(value: ManchesterMode) -> Self
Converts to this type from the input type.
Source§impl From<SpiMode> for SerialInterfaceType
impl From<SpiMode> for SerialInterfaceType
Source§impl PartialEq for SerialInterfaceType
impl PartialEq for SerialInterfaceType
impl StructuralPartialEq for SerialInterfaceType
Auto Trait Implementations§
impl Freeze for SerialInterfaceType
impl RefUnwindSafe for SerialInterfaceType
impl Send for SerialInterfaceType
impl Sync for SerialInterfaceType
impl Unpin for SerialInterfaceType
impl UnsafeUnpin for SerialInterfaceType
impl UnwindSafe for SerialInterfaceType
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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