pub enum Address {
Show 25 variants PD11(PD11<Alternate<12, PushPull>>), PD12(PD12<Alternate<12, PushPull>>), PD13(PD13<Alternate<12, PushPull>>), PE2(PE2<Alternate<12, PushPull>>), PE3(PE3<Alternate<12, PushPull>>), PE4(PE4<Alternate<12, PushPull>>), PE5(PE5<Alternate<12, PushPull>>), PE6(PE6<Alternate<12, PushPull>>), PF0(PF0<Alternate<12, PushPull>>), PF1(PF1<Alternate<12, PushPull>>), PF2(PF2<Alternate<12, PushPull>>), PF3(PF3<Alternate<12, PushPull>>), PF4(PF4<Alternate<12, PushPull>>), PF5(PF5<Alternate<12, PushPull>>), PF12(PF12<Alternate<12, PushPull>>), PF13(PF13<Alternate<12, PushPull>>), PF14(PF14<Alternate<12, PushPull>>), PF15(PF15<Alternate<12, PushPull>>), PG0(PG0<Alternate<12, PushPull>>), PG1(PG1<Alternate<12, PushPull>>), PG2(PG2<Alternate<12, PushPull>>), PG3(PG3<Alternate<12, PushPull>>), PG4(PG4<Alternate<12, PushPull>>), PG5(PG5<Alternate<12, PushPull>>), PG13(PG13<Alternate<12, PushPull>>),
}
Expand description

A pin that can be used as one bit of the memory address

This is used to switch between data and command mode.

Variants§

Trait Implementations§

source§

impl Debug for Address

source§

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

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

impl ExtiPin for Address

source§

fn make_interrupt_source(&mut self, _syscfg: &mut SysCfg)

Make corresponding EXTI line sensitive to this pin
source§

fn trigger_on_edge(&mut self, _exti: &mut EXTI, _level: Edge)

Generate interrupt on rising edge, falling edge or both
source§

fn enable_interrupt(&mut self, _exti: &mut EXTI)

Enable external interrupts from this pin.
source§

fn disable_interrupt(&mut self, _exti: &mut EXTI)

Disable external interrupts from this pin
source§

fn clear_interrupt_pending_bit(&mut self)

Clear the interrupt pending bit for this pin
source§

fn check_interrupt(&self) -> bool

Reads the interrupt pending bit for this pin
source§

impl From<Pin<'D', 11, Alternate<12>>> for Address

source§

fn from(p: PD11<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'D', 11, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PD11<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'D', 12, Alternate<12>>> for Address

source§

fn from(p: PD12<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'D', 12, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PD12<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'D', 13, Alternate<12>>> for Address

source§

fn from(p: PD13<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'D', 13, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PD13<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'E', 2, Alternate<12>>> for Address

source§

fn from(p: PE2<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'E', 2, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PE2<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'E', 3, Alternate<12>>> for Address

source§

fn from(p: PE3<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'E', 3, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PE3<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'E', 4, Alternate<12>>> for Address

source§

fn from(p: PE4<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'E', 4, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PE4<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'E', 5, Alternate<12>>> for Address

source§

fn from(p: PE5<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'E', 5, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PE5<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'E', 6, Alternate<12>>> for Address

source§

fn from(p: PE6<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'E', 6, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PE6<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 0, Alternate<12>>> for Address

source§

fn from(p: PF0<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 0, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF0<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 1, Alternate<12>>> for Address

source§

fn from(p: PF1<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 1, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF1<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 12, Alternate<12>>> for Address

source§

fn from(p: PF12<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 12, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF12<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 13, Alternate<12>>> for Address

source§

fn from(p: PF13<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 13, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF13<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 14, Alternate<12>>> for Address

source§

fn from(p: PF14<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 14, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF14<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 15, Alternate<12>>> for Address

source§

fn from(p: PF15<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 15, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF15<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 2, Alternate<12>>> for Address

source§

fn from(p: PF2<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 2, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF2<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 3, Alternate<12>>> for Address

source§

fn from(p: PF3<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 3, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF3<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 4, Alternate<12>>> for Address

source§

fn from(p: PF4<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 4, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF4<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'F', 5, Alternate<12>>> for Address

source§

fn from(p: PF5<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'F', 5, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PF5<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'G', 0, Alternate<12>>> for Address

source§

fn from(p: PG0<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'G', 0, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PG0<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'G', 1, Alternate<12>>> for Address

source§

fn from(p: PG1<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'G', 1, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PG1<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'G', 13, Alternate<12>>> for Address

source§

fn from(p: PG13<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'G', 13, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PG13<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'G', 2, Alternate<12>>> for Address

source§

fn from(p: PG2<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'G', 2, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PG2<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'G', 3, Alternate<12>>> for Address

source§

fn from(p: PG3<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'G', 3, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PG3<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'G', 4, Alternate<12>>> for Address

source§

fn from(p: PG4<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'G', 4, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PG4<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'G', 5, Alternate<12>>> for Address

source§

fn from(p: PG5<Alternate<12, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'G', 5, MODE>> for Address
where MODE: NotAlt + PinMode,

source§

fn from(p: PG5<MODE>) -> Self

Converts to this type from the input type.
source§

impl PinPull for Address

source§

fn set_internal_resistor(&mut self, _pull: Pull)

Set the internal pull-up and pull-down resistor
source§

fn internal_resistor(self, resistor: Pull) -> Self

source§

impl PinSpeed for Address

source§

fn set_speed(&mut self, _speed: Speed)

Set pin speed
source§

fn speed(self, speed: Speed) -> Self

source§

impl ReadPin for Address

source§

fn is_low(&self) -> bool

source§

fn is_high(&self) -> bool

source§

impl<MODE> TryFrom<Address> for PD11<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PD12<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PD13<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PE2<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PE3<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PE4<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PE5<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PE6<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF0<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF1<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF12<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF13<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF14<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF15<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF2<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF3<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF4<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PF5<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PG0<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PG1<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PG13<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PG2<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PG3<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PG4<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Address> for PG5<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: Address) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl AddressPins 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> 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>,

§

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>,

§

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.