SdrrCsState

Enum SdrrCsState 

Source
pub enum SdrrCsState {
    ActiveLow,
    ActiveHigh,
    NotUsed,
}
Expand description

SDRR chip select active options

Reflects sdrr_cs_state_t from sdrr/include/config_base.h

Variants§

§

ActiveLow

Chip select line is active low

§

ActiveHigh

Chip select line is active high

§

NotUsed

Chip select line is not used

Trait Implementations§

Source§

impl Clone for SdrrCsState

Source§

fn clone(&self) -> SdrrCsState

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SdrrCsState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DekuContainerRead<'_> for SdrrCsState

Source§

fn from_reader<'a, R: Read + Seek>( __deku_input: (&'a mut R, usize), ) -> Result<(usize, Self), DekuError>

Construct type from Reader implementing no_std_io::Read. Read more
Source§

fn from_bytes( __deku_input: (&[u8], usize), ) -> Result<((&[u8], usize), Self), DekuError>

Read bytes and construct type Read more
Source§

impl DekuContainerWrite for SdrrCsState

Source§

fn to_bytes(&self) -> Result<Vec<u8>, DekuError>

Write struct/enum to Vec Read more
Source§

fn to_slice(&self, buf: &mut [u8]) -> Result<usize, DekuError>

Write struct/enum to a given slice Read more
Source§

impl<'__deku> DekuEnumExt<'_, u8> for SdrrCsState

Source§

fn deku_id(&self) -> Result<u8, DekuError>

Obtain id of a given enum variant
Source§

impl DekuReader<'_> for SdrrCsState

Source§

fn from_reader_with_ctx<R: Read + Seek>( __deku_reader: &mut Reader<R>, _: (), ) -> Result<Self, DekuError>

Construct type from reader implementing no_std_io::Read, with ctx. Read more
Source§

impl DekuUpdate for SdrrCsState

Source§

fn update(&mut self) -> Result<(), DekuError>

Apply updates
Source§

impl DekuWriter for SdrrCsState

Source§

fn to_writer<W: Write + Seek>( &self, __deku_writer: &mut Writer<W>, _: (), ) -> Result<(), DekuError>

Write type to bytes
Source§

impl<'de> Deserialize<'de> for SdrrCsState

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for SdrrCsState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SdrrCsState

Source§

fn eq(&self, other: &SdrrCsState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SdrrCsState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&[u8]> for SdrrCsState

Source§

type Error = DekuError

The type returned in the event of a conversion error.
Source§

fn try_from(input: &[u8]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<SdrrCsState> for Vec<u8>

Source§

type Error = DekuError

The type returned in the event of a conversion error.
Source§

fn try_from(input: SdrrCsState) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for SdrrCsState

Source§

impl Eq for SdrrCsState

Source§

impl StructuralPartialEq for SdrrCsState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,