embassy-stm32

Crates

git

Versions

stm32h750xb

Flavors

Struct AnyPin

Source
pub struct AnyPin { /* private fields */ }
Expand description

Type-erased GPIO pin

Implementations§

Source§

impl AnyPin

Source

pub unsafe fn steal(pin_port: u8) -> Peri<'static, Self>

Unsafely create an AnyPin from a pin+port number.

pin_port is port_num * 16 + pin_num, where port_num is 0 for port A, 1 for port B, etc…

Source

pub fn block(&self) -> Gpio

Get the GPIO register block for this pin.

Trait Implementations§

Source§

impl Clone for AnyPin

Source§

fn clone(&self) -> Self

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 From<PA0> for AnyPin

Source§

fn from(val: PA0) -> Self

Converts to this type from the input type.
Source§

impl From<PA1> for AnyPin

Source§

fn from(val: PA1) -> Self

Converts to this type from the input type.
Source§

impl From<PA10> for AnyPin

Source§

fn from(val: PA10) -> Self

Converts to this type from the input type.
Source§

impl From<PA11> for AnyPin

Source§

fn from(val: PA11) -> Self

Converts to this type from the input type.
Source§

impl From<PA12> for AnyPin

Source§

fn from(val: PA12) -> Self

Converts to this type from the input type.
Source§

impl From<PA13> for AnyPin

Source§

fn from(val: PA13) -> Self

Converts to this type from the input type.
Source§

impl From<PA14> for AnyPin

Source§

fn from(val: PA14) -> Self

Converts to this type from the input type.
Source§

impl From<PA15> for AnyPin

Source§

fn from(val: PA15) -> Self

Converts to this type from the input type.
Source§

impl From<PA2> for AnyPin

Source§

fn from(val: PA2) -> Self

Converts to this type from the input type.
Source§

impl From<PA3> for AnyPin

Source§

fn from(val: PA3) -> Self

Converts to this type from the input type.
Source§

impl From<PA4> for AnyPin

Source§

fn from(val: PA4) -> Self

Converts to this type from the input type.
Source§

impl From<PA5> for AnyPin

Source§

fn from(val: PA5) -> Self

Converts to this type from the input type.
Source§

impl From<PA6> for AnyPin

Source§

fn from(val: PA6) -> Self

Converts to this type from the input type.
Source§

impl From<PA7> for AnyPin

Source§

fn from(val: PA7) -> Self

Converts to this type from the input type.
Source§

impl From<PA8> for AnyPin

Source§

fn from(val: PA8) -> Self

Converts to this type from the input type.
Source§

impl From<PA9> for AnyPin

Source§

fn from(val: PA9) -> Self

Converts to this type from the input type.
Source§

impl From<PB0> for AnyPin

Source§

fn from(val: PB0) -> Self

Converts to this type from the input type.
Source§

impl From<PB1> for AnyPin

Source§

fn from(val: PB1) -> Self

Converts to this type from the input type.
Source§

impl From<PB10> for AnyPin

Source§

fn from(val: PB10) -> Self

Converts to this type from the input type.
Source§

impl From<PB11> for AnyPin

Source§

fn from(val: PB11) -> Self

Converts to this type from the input type.
Source§

impl From<PB12> for AnyPin

Source§

fn from(val: PB12) -> Self

Converts to this type from the input type.
Source§

impl From<PB13> for AnyPin

Source§

fn from(val: PB13) -> Self

Converts to this type from the input type.
Source§

impl From<PB14> for AnyPin

Source§

fn from(val: PB14) -> Self

Converts to this type from the input type.
Source§

impl From<PB15> for AnyPin

Source§

fn from(val: PB15) -> Self

Converts to this type from the input type.
Source§

impl From<PB2> for AnyPin

Source§

fn from(val: PB2) -> Self

Converts to this type from the input type.
Source§

impl From<PB3> for AnyPin

Source§

fn from(val: PB3) -> Self

Converts to this type from the input type.
Source§

impl From<PB4> for AnyPin

Source§

fn from(val: PB4) -> Self

Converts to this type from the input type.
Source§

impl From<PB5> for AnyPin

Source§

fn from(val: PB5) -> Self

Converts to this type from the input type.
Source§

impl From<PB6> for AnyPin

Source§

fn from(val: PB6) -> Self

Converts to this type from the input type.
Source§

impl From<PB7> for AnyPin

Source§

fn from(val: PB7) -> Self

Converts to this type from the input type.
Source§

impl From<PB8> for AnyPin

Source§

fn from(val: PB8) -> Self

Converts to this type from the input type.
Source§

impl From<PB9> for AnyPin

Source§

fn from(val: PB9) -> Self

Converts to this type from the input type.
Source§

impl From<PC0> for AnyPin

Source§

fn from(val: PC0) -> Self

Converts to this type from the input type.
Source§

impl From<PC1> for AnyPin

Source§

fn from(val: PC1) -> Self

Converts to this type from the input type.
Source§

impl From<PC10> for AnyPin

Source§

fn from(val: PC10) -> Self

Converts to this type from the input type.
Source§

impl From<PC11> for AnyPin

Source§

fn from(val: PC11) -> Self

Converts to this type from the input type.
Source§

impl From<PC12> for AnyPin

Source§

fn from(val: PC12) -> Self

Converts to this type from the input type.
Source§

impl From<PC13> for AnyPin

Source§

fn from(val: PC13) -> Self

Converts to this type from the input type.
Source§

impl From<PC14> for AnyPin

Source§

fn from(val: PC14) -> Self

Converts to this type from the input type.
Source§

impl From<PC15> for AnyPin

Source§

fn from(val: PC15) -> Self

Converts to this type from the input type.
Source§

impl From<PC2> for AnyPin

Source§

fn from(val: PC2) -> Self

Converts to this type from the input type.
Source§

impl From<PC3> for AnyPin

Source§

fn from(val: PC3) -> Self

Converts to this type from the input type.
Source§

impl From<PC4> for AnyPin

Source§

fn from(val: PC4) -> Self

Converts to this type from the input type.
Source§

impl From<PC5> for AnyPin

Source§

fn from(val: PC5) -> Self

Converts to this type from the input type.
Source§

impl From<PC6> for AnyPin

Source§

fn from(val: PC6) -> Self

Converts to this type from the input type.
Source§

impl From<PC7> for AnyPin

Source§

fn from(val: PC7) -> Self

Converts to this type from the input type.
Source§

impl From<PC8> for AnyPin

Source§

fn from(val: PC8) -> Self

Converts to this type from the input type.
Source§

impl From<PC9> for AnyPin

Source§

fn from(val: PC9) -> Self

Converts to this type from the input type.
Source§

impl From<PD0> for AnyPin

Source§

fn from(val: PD0) -> Self

Converts to this type from the input type.
Source§

impl From<PD1> for AnyPin

Source§

fn from(val: PD1) -> Self

Converts to this type from the input type.
Source§

impl From<PD10> for AnyPin

Source§

fn from(val: PD10) -> Self

Converts to this type from the input type.
Source§

impl From<PD11> for AnyPin

Source§

fn from(val: PD11) -> Self

Converts to this type from the input type.
Source§

impl From<PD12> for AnyPin

Source§

fn from(val: PD12) -> Self

Converts to this type from the input type.
Source§

impl From<PD13> for AnyPin

Source§

fn from(val: PD13) -> Self

Converts to this type from the input type.
Source§

impl From<PD14> for AnyPin

Source§

fn from(val: PD14) -> Self

Converts to this type from the input type.
Source§

impl From<PD15> for AnyPin

Source§

fn from(val: PD15) -> Self

Converts to this type from the input type.
Source§

impl From<PD2> for AnyPin

Source§

fn from(val: PD2) -> Self

Converts to this type from the input type.
Source§

impl From<PD3> for AnyPin

Source§

fn from(val: PD3) -> Self

Converts to this type from the input type.
Source§

impl From<PD4> for AnyPin

Source§

fn from(val: PD4) -> Self

Converts to this type from the input type.
Source§

impl From<PD5> for AnyPin

Source§

fn from(val: PD5) -> Self

Converts to this type from the input type.
Source§

impl From<PD6> for AnyPin

Source§

fn from(val: PD6) -> Self

Converts to this type from the input type.
Source§

impl From<PD7> for AnyPin

Source§

fn from(val: PD7) -> Self

Converts to this type from the input type.
Source§

impl From<PD8> for AnyPin

Source§

fn from(val: PD8) -> Self

Converts to this type from the input type.
Source§

impl From<PD9> for AnyPin

Source§

fn from(val: PD9) -> Self

Converts to this type from the input type.
Source§

impl From<PE0> for AnyPin

Source§

fn from(val: PE0) -> Self

Converts to this type from the input type.
Source§

impl From<PE1> for AnyPin

Source§

fn from(val: PE1) -> Self

Converts to this type from the input type.
Source§

impl From<PE10> for AnyPin

Source§

fn from(val: PE10) -> Self

Converts to this type from the input type.
Source§

impl From<PE11> for AnyPin

Source§

fn from(val: PE11) -> Self

Converts to this type from the input type.
Source§

impl From<PE12> for AnyPin

Source§

fn from(val: PE12) -> Self

Converts to this type from the input type.
Source§

impl From<PE13> for AnyPin

Source§

fn from(val: PE13) -> Self

Converts to this type from the input type.
Source§

impl From<PE14> for AnyPin

Source§

fn from(val: PE14) -> Self

Converts to this type from the input type.
Source§

impl From<PE15> for AnyPin

Source§

fn from(val: PE15) -> Self

Converts to this type from the input type.
Source§

impl From<PE2> for AnyPin

Source§

fn from(val: PE2) -> Self

Converts to this type from the input type.
Source§

impl From<PE3> for AnyPin

Source§

fn from(val: PE3) -> Self

Converts to this type from the input type.
Source§

impl From<PE4> for AnyPin

Source§

fn from(val: PE4) -> Self

Converts to this type from the input type.
Source§

impl From<PE5> for AnyPin

Source§

fn from(val: PE5) -> Self

Converts to this type from the input type.
Source§

impl From<PE6> for AnyPin

Source§

fn from(val: PE6) -> Self

Converts to this type from the input type.
Source§

impl From<PE7> for AnyPin

Source§

fn from(val: PE7) -> Self

Converts to this type from the input type.
Source§

impl From<PE8> for AnyPin

Source§

fn from(val: PE8) -> Self

Converts to this type from the input type.
Source§

impl From<PE9> for AnyPin

Source§

fn from(val: PE9) -> Self

Converts to this type from the input type.
Source§

impl From<PF0> for AnyPin

Source§

fn from(val: PF0) -> Self

Converts to this type from the input type.
Source§

impl From<PF1> for AnyPin

Source§

fn from(val: PF1) -> Self

Converts to this type from the input type.
Source§

impl From<PF10> for AnyPin

Source§

fn from(val: PF10) -> Self

Converts to this type from the input type.
Source§

impl From<PF11> for AnyPin

Source§

fn from(val: PF11) -> Self

Converts to this type from the input type.
Source§

impl From<PF12> for AnyPin

Source§

fn from(val: PF12) -> Self

Converts to this type from the input type.
Source§

impl From<PF13> for AnyPin

Source§

fn from(val: PF13) -> Self

Converts to this type from the input type.
Source§

impl From<PF14> for AnyPin

Source§

fn from(val: PF14) -> Self

Converts to this type from the input type.
Source§

impl From<PF15> for AnyPin

Source§

fn from(val: PF15) -> Self

Converts to this type from the input type.
Source§

impl From<PF2> for AnyPin

Source§

fn from(val: PF2) -> Self

Converts to this type from the input type.
Source§

impl From<PF3> for AnyPin

Source§

fn from(val: PF3) -> Self

Converts to this type from the input type.
Source§

impl From<PF4> for AnyPin

Source§

fn from(val: PF4) -> Self

Converts to this type from the input type.
Source§

impl From<PF5> for AnyPin

Source§

fn from(val: PF5) -> Self

Converts to this type from the input type.
Source§

impl From<PF6> for AnyPin

Source§

fn from(val: PF6) -> Self

Converts to this type from the input type.
Source§

impl From<PF7> for AnyPin

Source§

fn from(val: PF7) -> Self

Converts to this type from the input type.
Source§

impl From<PF8> for AnyPin

Source§

fn from(val: PF8) -> Self

Converts to this type from the input type.
Source§

impl From<PF9> for AnyPin

Source§

fn from(val: PF9) -> Self

Converts to this type from the input type.
Source§

impl From<PG0> for AnyPin

Source§

fn from(val: PG0) -> Self

Converts to this type from the input type.
Source§

impl From<PG1> for AnyPin

Source§

fn from(val: PG1) -> Self

Converts to this type from the input type.
Source§

impl From<PG10> for AnyPin

Source§

fn from(val: PG10) -> Self

Converts to this type from the input type.
Source§

impl From<PG11> for AnyPin

Source§

fn from(val: PG11) -> Self

Converts to this type from the input type.
Source§

impl From<PG12> for AnyPin

Source§

fn from(val: PG12) -> Self

Converts to this type from the input type.
Source§

impl From<PG13> for AnyPin

Source§

fn from(val: PG13) -> Self

Converts to this type from the input type.
Source§

impl From<PG14> for AnyPin

Source§

fn from(val: PG14) -> Self

Converts to this type from the input type.
Source§

impl From<PG15> for AnyPin

Source§

fn from(val: PG15) -> Self

Converts to this type from the input type.
Source§

impl From<PG2> for AnyPin

Source§

fn from(val: PG2) -> Self

Converts to this type from the input type.
Source§

impl From<PG3> for AnyPin

Source§

fn from(val: PG3) -> Self

Converts to this type from the input type.
Source§

impl From<PG4> for AnyPin

Source§

fn from(val: PG4) -> Self

Converts to this type from the input type.
Source§

impl From<PG5> for AnyPin

Source§

fn from(val: PG5) -> Self

Converts to this type from the input type.
Source§

impl From<PG6> for AnyPin

Source§

fn from(val: PG6) -> Self

Converts to this type from the input type.
Source§

impl From<PG7> for AnyPin

Source§

fn from(val: PG7) -> Self

Converts to this type from the input type.
Source§

impl From<PG8> for AnyPin

Source§

fn from(val: PG8) -> Self

Converts to this type from the input type.
Source§

impl From<PG9> for AnyPin

Source§

fn from(val: PG9) -> Self

Converts to this type from the input type.
Source§

impl From<PH0> for AnyPin

Source§

fn from(val: PH0) -> Self

Converts to this type from the input type.
Source§

impl From<PH1> for AnyPin

Source§

fn from(val: PH1) -> Self

Converts to this type from the input type.
Source§

impl From<PH10> for AnyPin

Source§

fn from(val: PH10) -> Self

Converts to this type from the input type.
Source§

impl From<PH11> for AnyPin

Source§

fn from(val: PH11) -> Self

Converts to this type from the input type.
Source§

impl From<PH12> for AnyPin

Source§

fn from(val: PH12) -> Self

Converts to this type from the input type.
Source§

impl From<PH13> for AnyPin

Source§

fn from(val: PH13) -> Self

Converts to this type from the input type.
Source§

impl From<PH14> for AnyPin

Source§

fn from(val: PH14) -> Self

Converts to this type from the input type.
Source§

impl From<PH15> for AnyPin

Source§

fn from(val: PH15) -> Self

Converts to this type from the input type.
Source§

impl From<PH2> for AnyPin

Source§

fn from(val: PH2) -> Self

Converts to this type from the input type.
Source§

impl From<PH3> for AnyPin

Source§

fn from(val: PH3) -> Self

Converts to this type from the input type.
Source§

impl From<PH4> for AnyPin

Source§

fn from(val: PH4) -> Self

Converts to this type from the input type.
Source§

impl From<PH5> for AnyPin

Source§

fn from(val: PH5) -> Self

Converts to this type from the input type.
Source§

impl From<PH6> for AnyPin

Source§

fn from(val: PH6) -> Self

Converts to this type from the input type.
Source§

impl From<PH7> for AnyPin

Source§

fn from(val: PH7) -> Self

Converts to this type from the input type.
Source§

impl From<PH8> for AnyPin

Source§

fn from(val: PH8) -> Self

Converts to this type from the input type.
Source§

impl From<PH9> for AnyPin

Source§

fn from(val: PH9) -> Self

Converts to this type from the input type.
Source§

impl From<PI0> for AnyPin

Source§

fn from(val: PI0) -> Self

Converts to this type from the input type.
Source§

impl From<PI1> for AnyPin

Source§

fn from(val: PI1) -> Self

Converts to this type from the input type.
Source§

impl From<PI10> for AnyPin

Source§

fn from(val: PI10) -> Self

Converts to this type from the input type.
Source§

impl From<PI11> for AnyPin

Source§

fn from(val: PI11) -> Self

Converts to this type from the input type.
Source§

impl From<PI12> for AnyPin

Source§

fn from(val: PI12) -> Self

Converts to this type from the input type.
Source§

impl From<PI13> for AnyPin

Source§

fn from(val: PI13) -> Self

Converts to this type from the input type.
Source§

impl From<PI14> for AnyPin

Source§

fn from(val: PI14) -> Self

Converts to this type from the input type.
Source§

impl From<PI15> for AnyPin

Source§

fn from(val: PI15) -> Self

Converts to this type from the input type.
Source§

impl From<PI2> for AnyPin

Source§

fn from(val: PI2) -> Self

Converts to this type from the input type.
Source§

impl From<PI3> for AnyPin

Source§

fn from(val: PI3) -> Self

Converts to this type from the input type.
Source§

impl From<PI4> for AnyPin

Source§

fn from(val: PI4) -> Self

Converts to this type from the input type.
Source§

impl From<PI5> for AnyPin

Source§

fn from(val: PI5) -> Self

Converts to this type from the input type.
Source§

impl From<PI6> for AnyPin

Source§

fn from(val: PI6) -> Self

Converts to this type from the input type.
Source§

impl From<PI7> for AnyPin

Source§

fn from(val: PI7) -> Self

Converts to this type from the input type.
Source§

impl From<PI8> for AnyPin

Source§

fn from(val: PI8) -> Self

Converts to this type from the input type.
Source§

impl From<PI9> for AnyPin

Source§

fn from(val: PI9) -> Self

Converts to this type from the input type.
Source§

impl From<PJ0> for AnyPin

Source§

fn from(val: PJ0) -> Self

Converts to this type from the input type.
Source§

impl From<PJ1> for AnyPin

Source§

fn from(val: PJ1) -> Self

Converts to this type from the input type.
Source§

impl From<PJ10> for AnyPin

Source§

fn from(val: PJ10) -> Self

Converts to this type from the input type.
Source§

impl From<PJ11> for AnyPin

Source§

fn from(val: PJ11) -> Self

Converts to this type from the input type.
Source§

impl From<PJ12> for AnyPin

Source§

fn from(val: PJ12) -> Self

Converts to this type from the input type.
Source§

impl From<PJ13> for AnyPin

Source§

fn from(val: PJ13) -> Self

Converts to this type from the input type.
Source§

impl From<PJ14> for AnyPin

Source§

fn from(val: PJ14) -> Self

Converts to this type from the input type.
Source§

impl From<PJ15> for AnyPin

Source§

fn from(val: PJ15) -> Self

Converts to this type from the input type.
Source§

impl From<PJ2> for AnyPin

Source§

fn from(val: PJ2) -> Self

Converts to this type from the input type.
Source§

impl From<PJ3> for AnyPin

Source§

fn from(val: PJ3) -> Self

Converts to this type from the input type.
Source§

impl From<PJ4> for AnyPin

Source§

fn from(val: PJ4) -> Self

Converts to this type from the input type.
Source§

impl From<PJ5> for AnyPin

Source§

fn from(val: PJ5) -> Self

Converts to this type from the input type.
Source§

impl From<PJ6> for AnyPin

Source§

fn from(val: PJ6) -> Self

Converts to this type from the input type.
Source§

impl From<PJ7> for AnyPin

Source§

fn from(val: PJ7) -> Self

Converts to this type from the input type.
Source§

impl From<PJ8> for AnyPin

Source§

fn from(val: PJ8) -> Self

Converts to this type from the input type.
Source§

impl From<PJ9> for AnyPin

Source§

fn from(val: PJ9) -> Self

Converts to this type from the input type.
Source§

impl From<PK0> for AnyPin

Source§

fn from(val: PK0) -> Self

Converts to this type from the input type.
Source§

impl From<PK1> for AnyPin

Source§

fn from(val: PK1) -> Self

Converts to this type from the input type.
Source§

impl From<PK2> for AnyPin

Source§

fn from(val: PK2) -> Self

Converts to this type from the input type.
Source§

impl From<PK3> for AnyPin

Source§

fn from(val: PK3) -> Self

Converts to this type from the input type.
Source§

impl From<PK4> for AnyPin

Source§

fn from(val: PK4) -> Self

Converts to this type from the input type.
Source§

impl From<PK5> for AnyPin

Source§

fn from(val: PK5) -> Self

Converts to this type from the input type.
Source§

impl From<PK6> for AnyPin

Source§

fn from(val: PK6) -> Self

Converts to this type from the input type.
Source§

impl From<PK7> for AnyPin

Source§

fn from(val: PK7) -> Self

Converts to this type from the input type.
Source§

impl Pin for AnyPin

Source§

type ExtiChannel = AnyChannel

EXTI channel assigned to this pin. Read more
Source§

fn pin(&self) -> u8

Number of the pin within the port (0..31)
Source§

fn port(&self) -> u8

Port of the pin
Source§

impl Copy for AnyPin

Source§

impl PeripheralType for AnyPin

Auto Trait Implementations§

§

impl Freeze for AnyPin

§

impl RefUnwindSafe for AnyPin

§

impl Send for AnyPin

§

impl Sync for AnyPin

§

impl Unpin for AnyPin

§

impl UnwindSafe for AnyPin

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.