embassy-nxp

Crates

git

Versions

lpc55-core0

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_bank: Bank, pin_number: u8) -> Peri<'static, 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 Clone for AnyPin

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl From<PIO0_0> for AnyPin

Source§

fn from(val: PIO0_0) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_1> for AnyPin

Source§

fn from(val: PIO0_1) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_10> for AnyPin

Source§

fn from(val: PIO0_10) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_11> for AnyPin

Source§

fn from(val: PIO0_11) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_12> for AnyPin

Source§

fn from(val: PIO0_12) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_13> for AnyPin

Source§

fn from(val: PIO0_13) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_14> for AnyPin

Source§

fn from(val: PIO0_14) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_15> for AnyPin

Source§

fn from(val: PIO0_15) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_16> for AnyPin

Source§

fn from(val: PIO0_16) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_17> for AnyPin

Source§

fn from(val: PIO0_17) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_18> for AnyPin

Source§

fn from(val: PIO0_18) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_19> for AnyPin

Source§

fn from(val: PIO0_19) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_2> for AnyPin

Source§

fn from(val: PIO0_2) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_20> for AnyPin

Source§

fn from(val: PIO0_20) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_21> for AnyPin

Source§

fn from(val: PIO0_21) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_22> for AnyPin

Source§

fn from(val: PIO0_22) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_23> for AnyPin

Source§

fn from(val: PIO0_23) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_24> for AnyPin

Source§

fn from(val: PIO0_24) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_25> for AnyPin

Source§

fn from(val: PIO0_25) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_26> for AnyPin

Source§

fn from(val: PIO0_26) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_27> for AnyPin

Source§

fn from(val: PIO0_27) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_28> for AnyPin

Source§

fn from(val: PIO0_28) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_29> for AnyPin

Source§

fn from(val: PIO0_29) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_3> for AnyPin

Source§

fn from(val: PIO0_3) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_30> for AnyPin

Source§

fn from(val: PIO0_30) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_31> for AnyPin

Source§

fn from(val: PIO0_31) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_4> for AnyPin

Source§

fn from(val: PIO0_4) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_5> for AnyPin

Source§

fn from(val: PIO0_5) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_6> for AnyPin

Source§

fn from(val: PIO0_6) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_7> for AnyPin

Source§

fn from(val: PIO0_7) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_8> for AnyPin

Source§

fn from(val: PIO0_8) -> Self

Converts to this type from the input type.
Source§

impl From<PIO0_9> for AnyPin

Source§

fn from(val: PIO0_9) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_0> for AnyPin

Source§

fn from(val: PIO1_0) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_1> for AnyPin

Source§

fn from(val: PIO1_1) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_10> for AnyPin

Source§

fn from(val: PIO1_10) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_11> for AnyPin

Source§

fn from(val: PIO1_11) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_12> for AnyPin

Source§

fn from(val: PIO1_12) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_13> for AnyPin

Source§

fn from(val: PIO1_13) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_14> for AnyPin

Source§

fn from(val: PIO1_14) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_15> for AnyPin

Source§

fn from(val: PIO1_15) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_16> for AnyPin

Source§

fn from(val: PIO1_16) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_17> for AnyPin

Source§

fn from(val: PIO1_17) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_18> for AnyPin

Source§

fn from(val: PIO1_18) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_19> for AnyPin

Source§

fn from(val: PIO1_19) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_2> for AnyPin

Source§

fn from(val: PIO1_2) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_20> for AnyPin

Source§

fn from(val: PIO1_20) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_21> for AnyPin

Source§

fn from(val: PIO1_21) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_22> for AnyPin

Source§

fn from(val: PIO1_22) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_23> for AnyPin

Source§

fn from(val: PIO1_23) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_24> for AnyPin

Source§

fn from(val: PIO1_24) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_25> for AnyPin

Source§

fn from(val: PIO1_25) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_26> for AnyPin

Source§

fn from(val: PIO1_26) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_27> for AnyPin

Source§

fn from(val: PIO1_27) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_28> for AnyPin

Source§

fn from(val: PIO1_28) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_29> for AnyPin

Source§

fn from(val: PIO1_29) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_3> for AnyPin

Source§

fn from(val: PIO1_3) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_30> for AnyPin

Source§

fn from(val: PIO1_30) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_31> for AnyPin

Source§

fn from(val: PIO1_31) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_4> for AnyPin

Source§

fn from(val: PIO1_4) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_5> for AnyPin

Source§

fn from(val: PIO1_5) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_6> for AnyPin

Source§

fn from(val: PIO1_6) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_7> for AnyPin

Source§

fn from(val: PIO1_7) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_8> for AnyPin

Source§

fn from(val: PIO1_8) -> Self

Converts to this type from the input type.
Source§

impl From<PIO1_9> for AnyPin

Source§

fn from(val: PIO1_9) -> Self

Converts to this type from the input type.
Source§

impl Pin for AnyPin

Source§

fn pin(&self) -> u8

Returns the pin number within a bank
Source§

fn bank(&self) -> Bank

Returns the bank of this 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, dest: *mut u8)

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