AnyPin

Struct AnyPin 

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

Type-erased GPIO pin

Implementations§

Source§

impl AnyPin

Source

pub unsafe fn steal(pin_bank: u8) -> Self

Unsafely create a new type-erased pin.

§Safety

You must ensure that you’re only using one instance of this type at a time.

Trait Implementations§

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<PA16> for AnyPin

Source§

fn from(val: PA16) -> Self

Converts to this type from the input type.
Source§

impl From<PA17> for AnyPin

Source§

fn from(val: PA17) -> Self

Converts to this type from the input type.
Source§

impl From<PA18> for AnyPin

Source§

fn from(val: PA18) -> Self

Converts to this type from the input type.
Source§

impl From<PA19> for AnyPin

Source§

fn from(val: PA19) -> 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<PA20> for AnyPin

Source§

fn from(val: PA20) -> Self

Converts to this type from the input type.
Source§

impl From<PA21> for AnyPin

Source§

fn from(val: PA21) -> Self

Converts to this type from the input type.
Source§

impl From<PA22> for AnyPin

Source§

fn from(val: PA22) -> Self

Converts to this type from the input type.
Source§

impl From<PA23> for AnyPin

Source§

fn from(val: PA23) -> Self

Converts to this type from the input type.
Source§

impl From<PA24> for AnyPin

Source§

fn from(val: PA24) -> Self

Converts to this type from the input type.
Source§

impl From<PA25> for AnyPin

Source§

fn from(val: PA25) -> Self

Converts to this type from the input type.
Source§

impl From<PA26> for AnyPin

Source§

fn from(val: PA26) -> Self

Converts to this type from the input type.
Source§

impl From<PA27> for AnyPin

Source§

fn from(val: PA27) -> Self

Converts to this type from the input type.
Source§

impl From<PA28> for AnyPin

Source§

fn from(val: PA28) -> Self

Converts to this type from the input type.
Source§

impl From<PA29> for AnyPin

Source§

fn from(val: PA29) -> 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<PA30> for AnyPin

Source§

fn from(val: PA30) -> Self

Converts to this type from the input type.
Source§

impl From<PA31> for AnyPin

Source§

fn from(val: PA31) -> Self

Converts to this type from the input type.
Source§

impl From<PA32> for AnyPin

Source§

fn from(val: PA32) -> Self

Converts to this type from the input type.
Source§

impl From<PA33> for AnyPin

Source§

fn from(val: PA33) -> Self

Converts to this type from the input type.
Source§

impl From<PA34> for AnyPin

Source§

fn from(val: PA34) -> Self

Converts to this type from the input type.
Source§

impl From<PA35> for AnyPin

Source§

fn from(val: PA35) -> Self

Converts to this type from the input type.
Source§

impl From<PA36> for AnyPin

Source§

fn from(val: PA36) -> Self

Converts to this type from the input type.
Source§

impl From<PA37> for AnyPin

Source§

fn from(val: PA37) -> Self

Converts to this type from the input type.
Source§

impl From<PA38> for AnyPin

Source§

fn from(val: PA38) -> Self

Converts to this type from the input type.
Source§

impl From<PA39> for AnyPin

Source§

fn from(val: PA39) -> 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<PA40> for AnyPin

Source§

fn from(val: PA40) -> Self

Converts to this type from the input type.
Source§

impl From<PA41> for AnyPin

Source§

fn from(val: PA41) -> Self

Converts to this type from the input type.
Source§

impl From<PA42> for AnyPin

Source§

fn from(val: PA42) -> Self

Converts to this type from the input type.
Source§

impl From<PA43> for AnyPin

Source§

fn from(val: PA43) -> Self

Converts to this type from the input type.
Source§

impl From<PA44> for AnyPin

Source§

fn from(val: PA44) -> 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 Peripheral for AnyPin

Source§

type P = AnyPin

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&self) -> Self::P

Unsafely clone (duplicate) a peripheral singleton. Read more
Source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more
Source§

impl Pin for AnyPin

Source§

fn degrade(self) -> AnyPin

Degrade to a generic pin struct
Source§

fn pin(&self) -> u8

Returns the pin number within a bank
Source§

fn bank(&self) -> u8

Returns the bank of this pin (PA=0, PB=1)

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