esp_hal::spi::master

Enum Address

Source
pub enum Address {
Show 33 variants None, Address1(u32, SpiDataMode), Address2(u32, SpiDataMode), Address3(u32, SpiDataMode), Address4(u32, SpiDataMode), Address5(u32, SpiDataMode), Address6(u32, SpiDataMode), Address7(u32, SpiDataMode), Address8(u32, SpiDataMode), Address9(u32, SpiDataMode), Address10(u32, SpiDataMode), Address11(u32, SpiDataMode), Address12(u32, SpiDataMode), Address13(u32, SpiDataMode), Address14(u32, SpiDataMode), Address15(u32, SpiDataMode), Address16(u32, SpiDataMode), Address17(u32, SpiDataMode), Address18(u32, SpiDataMode), Address19(u32, SpiDataMode), Address20(u32, SpiDataMode), Address21(u32, SpiDataMode), Address22(u32, SpiDataMode), Address23(u32, SpiDataMode), Address24(u32, SpiDataMode), Address25(u32, SpiDataMode), Address26(u32, SpiDataMode), Address27(u32, SpiDataMode), Address28(u32, SpiDataMode), Address29(u32, SpiDataMode), Address30(u32, SpiDataMode), Address31(u32, SpiDataMode), Address32(u32, SpiDataMode),
}
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.

Variants§

§

None

No address phase.

§

Address1(u32, SpiDataMode)

Address with 1-bit.

§

Address2(u32, SpiDataMode)

Address with 2-bit.

§

Address3(u32, SpiDataMode)

Address with 3-bit.

§

Address4(u32, SpiDataMode)

Address with 4-bit.

§

Address5(u32, SpiDataMode)

Address with 5-bit.

§

Address6(u32, SpiDataMode)

Address with 6-bit.

§

Address7(u32, SpiDataMode)

Address with 7-bit.

§

Address8(u32, SpiDataMode)

Address with 8-bit.

§

Address9(u32, SpiDataMode)

Address with 9-bit.

§

Address10(u32, SpiDataMode)

Address with 10-bit.

§

Address11(u32, SpiDataMode)

Address with 11-bit.

§

Address12(u32, SpiDataMode)

Address with 12-bit.

§

Address13(u32, SpiDataMode)

Address with 13-bit.

§

Address14(u32, SpiDataMode)

Address with 14-bit.

§

Address15(u32, SpiDataMode)

Address with 15-bit.

§

Address16(u32, SpiDataMode)

Address with 16-bit.

§

Address17(u32, SpiDataMode)

Address with 17-bit.

§

Address18(u32, SpiDataMode)

Address with 18-bit.

§

Address19(u32, SpiDataMode)

Address with 19-bit.

§

Address20(u32, SpiDataMode)

Address with 20-bit.

§

Address21(u32, SpiDataMode)

Address with 21-bit.

§

Address22(u32, SpiDataMode)

Address with 22-bit.

§

Address23(u32, SpiDataMode)

Address with 23-bit.

§

Address24(u32, SpiDataMode)

Address with 24-bit.

§

Address25(u32, SpiDataMode)

Address with 25-bit.

§

Address26(u32, SpiDataMode)

Address with 26-bit.

§

Address27(u32, SpiDataMode)

Address with 27-bit.

§

Address28(u32, SpiDataMode)

Address with 28-bit.

§

Address29(u32, SpiDataMode)

Address with 29-bit.

§

Address30(u32, SpiDataMode)

Address with 30-bit.

§

Address31(u32, SpiDataMode)

Address with 31-bit.

§

Address32(u32, SpiDataMode)

Address with 32-bit.

Trait Implementations§

Source§

impl Clone for Address

Source§

fn clone(&self) -> Address

Returns a copy 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 Address

Source§

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

Formats the value using the given formatter. 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 · 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 Copy for Address

Source§

impl Eq for Address

Source§

impl StructuralPartialEq for Address

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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, 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.