Enum Address

Source
#[non_exhaustive]
pub enum Address {
Show 33 variants None, _1Bit(u32, DataMode), _2Bit(u32, DataMode), _3Bit(u32, DataMode), _4Bit(u32, DataMode), _5Bit(u32, DataMode), _6Bit(u32, DataMode), _7Bit(u32, DataMode), _8Bit(u32, DataMode), _9Bit(u32, DataMode), _10Bit(u32, DataMode), _11Bit(u32, DataMode), _12Bit(u32, DataMode), _13Bit(u32, DataMode), _14Bit(u32, DataMode), _15Bit(u32, DataMode), _16Bit(u32, DataMode), _17Bit(u32, DataMode), _18Bit(u32, DataMode), _19Bit(u32, DataMode), _20Bit(u32, DataMode), _21Bit(u32, DataMode), _22Bit(u32, DataMode), _23Bit(u32, DataMode), _24Bit(u32, DataMode), _25Bit(u32, DataMode), _26Bit(u32, DataMode), _27Bit(u32, DataMode), _28Bit(u32, DataMode), _29Bit(u32, DataMode), _30Bit(u32, DataMode), _31Bit(u32, DataMode), _32Bit(u32, DataMode),
}
Available on crate feature unstable only.
Expand description

SPI address, ranging from 1 to 32 bits, paired with a data mode.

This can be used to specify the address phase of SPI transactions. Can be Address::None if address phase should be suppressed.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

None

No address phase.

§

_1Bit(u32, DataMode)

A 1-bit address.

§

_2Bit(u32, DataMode)

A 2-bit address.

§

_3Bit(u32, DataMode)

A 3-bit address.

§

_4Bit(u32, DataMode)

A 4-bit address.

§

_5Bit(u32, DataMode)

A 5-bit address.

§

_6Bit(u32, DataMode)

A 6-bit address.

§

_7Bit(u32, DataMode)

A 7-bit address.

§

_8Bit(u32, DataMode)

A 8-bit address.

§

_9Bit(u32, DataMode)

A 9-bit address.

§

_10Bit(u32, DataMode)

A 10-bit address.

§

_11Bit(u32, DataMode)

A 11-bit address.

§

_12Bit(u32, DataMode)

A 12-bit address.

§

_13Bit(u32, DataMode)

A 13-bit address.

§

_14Bit(u32, DataMode)

A 14-bit address.

§

_15Bit(u32, DataMode)

A 15-bit address.

§

_16Bit(u32, DataMode)

A 16-bit address.

§

_17Bit(u32, DataMode)

A 17-bit address.

§

_18Bit(u32, DataMode)

A 18-bit address.

§

_19Bit(u32, DataMode)

A 19-bit address.

§

_20Bit(u32, DataMode)

A 20-bit address.

§

_21Bit(u32, DataMode)

A 21-bit address.

§

_22Bit(u32, DataMode)

A 22-bit address.

§

_23Bit(u32, DataMode)

A 23-bit address.

§

_24Bit(u32, DataMode)

A 24-bit address.

§

_25Bit(u32, DataMode)

A 25-bit address.

§

_26Bit(u32, DataMode)

A 26-bit address.

§

_27Bit(u32, DataMode)

A 27-bit address.

§

_28Bit(u32, DataMode)

A 28-bit address.

§

_29Bit(u32, DataMode)

A 29-bit address.

§

_30Bit(u32, DataMode)

A 30-bit address.

§

_31Bit(u32, DataMode)

A 31-bit address.

§

_32Bit(u32, DataMode)

A 32-bit address.

Trait Implementations§

Source§

impl Clone for Address

Source§

fn clone(&self) -> Address

Returns a copy of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Address

Source§

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

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

impl Format for Address

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl Hash for Address

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
Source§

impl PartialEq for Address

Source§

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

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

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 Copy for Address

Source§

impl Eq for Address

Source§

impl StructuralPartialEq for Address

Auto Trait Implementations§

§

impl Freeze for Address

§

impl RefUnwindSafe for Address

§

impl Send for Address

§

impl Sync for Address

§

impl Unpin for Address

§

impl UnwindSafe for Address

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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

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

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.