embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

AnyPin

Struct AnyPin 

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

Type-erased representation of a GPIO pin.

Implementations§

Source§

impl AnyPin

Source

pub fn port_index(&self) -> usize

Source

pub fn pin_index(&self) -> usize

Trait Implementations§

Source§

impl Clone for AnyPin

Source§

fn clone(&self) -> Self

Returns a duplicate 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<P0_0> for AnyPin

Source§

fn from(value: P0_0) -> Self

Converts to this type from the input type.
Source§

impl From<P0_1> for AnyPin

Source§

fn from(value: P0_1) -> Self

Converts to this type from the input type.
Source§

impl From<P0_10> for AnyPin

Source§

fn from(value: P0_10) -> Self

Converts to this type from the input type.
Source§

impl From<P0_11> for AnyPin

Source§

fn from(value: P0_11) -> Self

Converts to this type from the input type.
Source§

impl From<P0_12> for AnyPin

Source§

fn from(value: P0_12) -> Self

Converts to this type from the input type.
Source§

impl From<P0_13> for AnyPin

Source§

fn from(value: P0_13) -> Self

Converts to this type from the input type.
Source§

impl From<P0_14> for AnyPin

Source§

fn from(value: P0_14) -> Self

Converts to this type from the input type.
Source§

impl From<P0_15> for AnyPin

Source§

fn from(value: P0_15) -> Self

Converts to this type from the input type.
Source§

impl From<P0_16> for AnyPin

Source§

fn from(value: P0_16) -> Self

Converts to this type from the input type.
Source§

impl From<P0_17> for AnyPin

Source§

fn from(value: P0_17) -> Self

Converts to this type from the input type.
Source§

impl From<P0_18> for AnyPin

Source§

fn from(value: P0_18) -> Self

Converts to this type from the input type.
Source§

impl From<P0_19> for AnyPin

Source§

fn from(value: P0_19) -> Self

Converts to this type from the input type.
Source§

impl From<P0_2> for AnyPin

Source§

fn from(value: P0_2) -> Self

Converts to this type from the input type.
Source§

impl From<P0_20> for AnyPin

Source§

fn from(value: P0_20) -> Self

Converts to this type from the input type.
Source§

impl From<P0_21> for AnyPin

Source§

fn from(value: P0_21) -> Self

Converts to this type from the input type.
Source§

impl From<P0_22> for AnyPin

Source§

fn from(value: P0_22) -> Self

Converts to this type from the input type.
Source§

impl From<P0_23> for AnyPin

Source§

fn from(value: P0_23) -> Self

Converts to this type from the input type.
Source§

impl From<P0_24> for AnyPin

Source§

fn from(value: P0_24) -> Self

Converts to this type from the input type.
Source§

impl From<P0_25> for AnyPin

Source§

fn from(value: P0_25) -> Self

Converts to this type from the input type.
Source§

impl From<P0_26> for AnyPin

Source§

fn from(value: P0_26) -> Self

Converts to this type from the input type.
Source§

impl From<P0_27> for AnyPin

Source§

fn from(value: P0_27) -> Self

Converts to this type from the input type.
Source§

impl From<P0_28> for AnyPin

Source§

fn from(value: P0_28) -> Self

Converts to this type from the input type.
Source§

impl From<P0_29> for AnyPin

Source§

fn from(value: P0_29) -> Self

Converts to this type from the input type.
Source§

impl From<P0_3> for AnyPin

Source§

fn from(value: P0_3) -> Self

Converts to this type from the input type.
Source§

impl From<P0_30> for AnyPin

Source§

fn from(value: P0_30) -> Self

Converts to this type from the input type.
Source§

impl From<P0_31> for AnyPin

Source§

fn from(value: P0_31) -> Self

Converts to this type from the input type.
Source§

impl From<P0_4> for AnyPin

Source§

fn from(value: P0_4) -> Self

Converts to this type from the input type.
Source§

impl From<P0_5> for AnyPin

Source§

fn from(value: P0_5) -> Self

Converts to this type from the input type.
Source§

impl From<P0_6> for AnyPin

Source§

fn from(value: P0_6) -> Self

Converts to this type from the input type.
Source§

impl From<P0_7> for AnyPin

Source§

fn from(value: P0_7) -> Self

Converts to this type from the input type.
Source§

impl From<P0_8> for AnyPin

Source§

fn from(value: P0_8) -> Self

Converts to this type from the input type.
Source§

impl From<P0_9> for AnyPin

Source§

fn from(value: P0_9) -> Self

Converts to this type from the input type.
Source§

impl From<P1_0> for AnyPin

Source§

fn from(value: P1_0) -> Self

Converts to this type from the input type.
Source§

impl From<P1_1> for AnyPin

Source§

fn from(value: P1_1) -> Self

Converts to this type from the input type.
Source§

impl From<P1_10> for AnyPin

Source§

fn from(value: P1_10) -> Self

Converts to this type from the input type.
Source§

impl From<P1_11> for AnyPin

Source§

fn from(value: P1_11) -> Self

Converts to this type from the input type.
Source§

impl From<P1_12> for AnyPin

Source§

fn from(value: P1_12) -> Self

Converts to this type from the input type.
Source§

impl From<P1_13> for AnyPin

Source§

fn from(value: P1_13) -> Self

Converts to this type from the input type.
Source§

impl From<P1_14> for AnyPin

Source§

fn from(value: P1_14) -> Self

Converts to this type from the input type.
Source§

impl From<P1_15> for AnyPin

Source§

fn from(value: P1_15) -> Self

Converts to this type from the input type.
Source§

impl From<P1_16> for AnyPin

Source§

fn from(value: P1_16) -> Self

Converts to this type from the input type.
Source§

impl From<P1_17> for AnyPin

Source§

fn from(value: P1_17) -> Self

Converts to this type from the input type.
Source§

impl From<P1_18> for AnyPin

Source§

fn from(value: P1_18) -> Self

Converts to this type from the input type.
Source§

impl From<P1_19> for AnyPin

Source§

fn from(value: P1_19) -> Self

Converts to this type from the input type.
Source§

impl From<P1_2> for AnyPin

Source§

fn from(value: P1_2) -> Self

Converts to this type from the input type.
Source§

impl From<P1_20> for AnyPin

Source§

fn from(value: P1_20) -> Self

Converts to this type from the input type.
Source§

impl From<P1_21> for AnyPin

Source§

fn from(value: P1_21) -> Self

Converts to this type from the input type.
Source§

impl From<P1_22> for AnyPin

Source§

fn from(value: P1_22) -> Self

Converts to this type from the input type.
Source§

impl From<P1_23> for AnyPin

Source§

fn from(value: P1_23) -> Self

Converts to this type from the input type.
Source§

impl From<P1_24> for AnyPin

Source§

fn from(value: P1_24) -> Self

Converts to this type from the input type.
Source§

impl From<P1_25> for AnyPin

Source§

fn from(value: P1_25) -> Self

Converts to this type from the input type.
Source§

impl From<P1_26> for AnyPin

Source§

fn from(value: P1_26) -> Self

Converts to this type from the input type.
Source§

impl From<P1_27> for AnyPin

Source§

fn from(value: P1_27) -> Self

Converts to this type from the input type.
Source§

impl From<P1_28> for AnyPin

Source§

fn from(value: P1_28) -> Self

Converts to this type from the input type.
Source§

impl From<P1_29> for AnyPin

Source§

fn from(value: P1_29) -> Self

Converts to this type from the input type.
Source§

impl From<P1_3> for AnyPin

Source§

fn from(value: P1_3) -> Self

Converts to this type from the input type.
Source§

impl From<P1_30> for AnyPin

Source§

fn from(value: P1_30) -> Self

Converts to this type from the input type.
Source§

impl From<P1_31> for AnyPin

Source§

fn from(value: P1_31) -> Self

Converts to this type from the input type.
Source§

impl From<P1_4> for AnyPin

Source§

fn from(value: P1_4) -> Self

Converts to this type from the input type.
Source§

impl From<P1_5> for AnyPin

Source§

fn from(value: P1_5) -> Self

Converts to this type from the input type.
Source§

impl From<P1_6> for AnyPin

Source§

fn from(value: P1_6) -> Self

Converts to this type from the input type.
Source§

impl From<P1_7> for AnyPin

Source§

fn from(value: P1_7) -> Self

Converts to this type from the input type.
Source§

impl From<P1_8> for AnyPin

Source§

fn from(value: P1_8) -> Self

Converts to this type from the input type.
Source§

impl From<P1_9> for AnyPin

Source§

fn from(value: P1_9) -> Self

Converts to this type from the input type.
Source§

impl From<P2_0> for AnyPin

Source§

fn from(value: P2_0) -> Self

Converts to this type from the input type.
Source§

impl From<P2_1> for AnyPin

Source§

fn from(value: P2_1) -> Self

Converts to this type from the input type.
Source§

impl From<P2_10> for AnyPin

Source§

fn from(value: P2_10) -> Self

Converts to this type from the input type.
Source§

impl From<P2_11> for AnyPin

Source§

fn from(value: P2_11) -> Self

Converts to this type from the input type.
Source§

impl From<P2_12> for AnyPin

Source§

fn from(value: P2_12) -> Self

Converts to this type from the input type.
Source§

impl From<P2_13> for AnyPin

Source§

fn from(value: P2_13) -> Self

Converts to this type from the input type.
Source§

impl From<P2_14> for AnyPin

Source§

fn from(value: P2_14) -> Self

Converts to this type from the input type.
Source§

impl From<P2_15> for AnyPin

Source§

fn from(value: P2_15) -> Self

Converts to this type from the input type.
Source§

impl From<P2_16> for AnyPin

Source§

fn from(value: P2_16) -> Self

Converts to this type from the input type.
Source§

impl From<P2_17> for AnyPin

Source§

fn from(value: P2_17) -> Self

Converts to this type from the input type.
Source§

impl From<P2_18> for AnyPin

Source§

fn from(value: P2_18) -> Self

Converts to this type from the input type.
Source§

impl From<P2_19> for AnyPin

Source§

fn from(value: P2_19) -> Self

Converts to this type from the input type.
Source§

impl From<P2_2> for AnyPin

Source§

fn from(value: P2_2) -> Self

Converts to this type from the input type.
Source§

impl From<P2_20> for AnyPin

Source§

fn from(value: P2_20) -> Self

Converts to this type from the input type.
Source§

impl From<P2_21> for AnyPin

Source§

fn from(value: P2_21) -> Self

Converts to this type from the input type.
Source§

impl From<P2_22> for AnyPin

Source§

fn from(value: P2_22) -> Self

Converts to this type from the input type.
Source§

impl From<P2_23> for AnyPin

Source§

fn from(value: P2_23) -> Self

Converts to this type from the input type.
Source§

impl From<P2_24> for AnyPin

Source§

fn from(value: P2_24) -> Self

Converts to this type from the input type.
Source§

impl From<P2_25> for AnyPin

Source§

fn from(value: P2_25) -> Self

Converts to this type from the input type.
Source§

impl From<P2_26> for AnyPin

Source§

fn from(value: P2_26) -> Self

Converts to this type from the input type.
Source§

impl From<P2_27> for AnyPin

Source§

fn from(value: P2_27) -> Self

Converts to this type from the input type.
Source§

impl From<P2_28> for AnyPin

Source§

fn from(value: P2_28) -> Self

Converts to this type from the input type.
Source§

impl From<P2_29> for AnyPin

Source§

fn from(value: P2_29) -> Self

Converts to this type from the input type.
Source§

impl From<P2_3> for AnyPin

Source§

fn from(value: P2_3) -> Self

Converts to this type from the input type.
Source§

impl From<P2_30> for AnyPin

Source§

fn from(value: P2_30) -> Self

Converts to this type from the input type.
Source§

impl From<P2_31> for AnyPin

Source§

fn from(value: P2_31) -> Self

Converts to this type from the input type.
Source§

impl From<P2_4> for AnyPin

Source§

fn from(value: P2_4) -> Self

Converts to this type from the input type.
Source§

impl From<P2_5> for AnyPin

Source§

fn from(value: P2_5) -> Self

Converts to this type from the input type.
Source§

impl From<P2_6> for AnyPin

Source§

fn from(value: P2_6) -> Self

Converts to this type from the input type.
Source§

impl From<P2_7> for AnyPin

Source§

fn from(value: P2_7) -> Self

Converts to this type from the input type.
Source§

impl From<P2_8> for AnyPin

Source§

fn from(value: P2_8) -> Self

Converts to this type from the input type.
Source§

impl From<P2_9> for AnyPin

Source§

fn from(value: P2_9) -> Self

Converts to this type from the input type.
Source§

impl From<P3_0> for AnyPin

Source§

fn from(value: P3_0) -> Self

Converts to this type from the input type.
Source§

impl From<P3_1> for AnyPin

Source§

fn from(value: P3_1) -> Self

Converts to this type from the input type.
Source§

impl From<P3_10> for AnyPin

Source§

fn from(value: P3_10) -> Self

Converts to this type from the input type.
Source§

impl From<P3_11> for AnyPin

Source§

fn from(value: P3_11) -> Self

Converts to this type from the input type.
Source§

impl From<P3_12> for AnyPin

Source§

fn from(value: P3_12) -> Self

Converts to this type from the input type.
Source§

impl From<P3_13> for AnyPin

Source§

fn from(value: P3_13) -> Self

Converts to this type from the input type.
Source§

impl From<P3_14> for AnyPin

Source§

fn from(value: P3_14) -> Self

Converts to this type from the input type.
Source§

impl From<P3_15> for AnyPin

Source§

fn from(value: P3_15) -> Self

Converts to this type from the input type.
Source§

impl From<P3_16> for AnyPin

Source§

fn from(value: P3_16) -> Self

Converts to this type from the input type.
Source§

impl From<P3_17> for AnyPin

Source§

fn from(value: P3_17) -> Self

Converts to this type from the input type.
Source§

impl From<P3_18> for AnyPin

Source§

fn from(value: P3_18) -> Self

Converts to this type from the input type.
Source§

impl From<P3_19> for AnyPin

Source§

fn from(value: P3_19) -> Self

Converts to this type from the input type.
Source§

impl From<P3_2> for AnyPin

Source§

fn from(value: P3_2) -> Self

Converts to this type from the input type.
Source§

impl From<P3_20> for AnyPin

Source§

fn from(value: P3_20) -> Self

Converts to this type from the input type.
Source§

impl From<P3_21> for AnyPin

Source§

fn from(value: P3_21) -> Self

Converts to this type from the input type.
Source§

impl From<P3_22> for AnyPin

Source§

fn from(value: P3_22) -> Self

Converts to this type from the input type.
Source§

impl From<P3_23> for AnyPin

Source§

fn from(value: P3_23) -> Self

Converts to this type from the input type.
Source§

impl From<P3_24> for AnyPin

Source§

fn from(value: P3_24) -> Self

Converts to this type from the input type.
Source§

impl From<P3_25> for AnyPin

Source§

fn from(value: P3_25) -> Self

Converts to this type from the input type.
Source§

impl From<P3_26> for AnyPin

Source§

fn from(value: P3_26) -> Self

Converts to this type from the input type.
Source§

impl From<P3_27> for AnyPin

Source§

fn from(value: P3_27) -> Self

Converts to this type from the input type.
Source§

impl From<P3_28> for AnyPin

Source§

fn from(value: P3_28) -> Self

Converts to this type from the input type.
Source§

impl From<P3_29> for AnyPin

Source§

fn from(value: P3_29) -> Self

Converts to this type from the input type.
Source§

impl From<P3_3> for AnyPin

Source§

fn from(value: P3_3) -> Self

Converts to this type from the input type.
Source§

impl From<P3_30> for AnyPin

Source§

fn from(value: P3_30) -> Self

Converts to this type from the input type.
Source§

impl From<P3_31> for AnyPin

Source§

fn from(value: P3_31) -> Self

Converts to this type from the input type.
Source§

impl From<P3_4> for AnyPin

Source§

fn from(value: P3_4) -> Self

Converts to this type from the input type.
Source§

impl From<P3_5> for AnyPin

Source§

fn from(value: P3_5) -> Self

Converts to this type from the input type.
Source§

impl From<P3_6> for AnyPin

Source§

fn from(value: P3_6) -> Self

Converts to this type from the input type.
Source§

impl From<P3_7> for AnyPin

Source§

fn from(value: P3_7) -> Self

Converts to this type from the input type.
Source§

impl From<P3_8> for AnyPin

Source§

fn from(value: P3_8) -> Self

Converts to this type from the input type.
Source§

impl From<P3_9> for AnyPin

Source§

fn from(value: P3_9) -> Self

Converts to this type from the input type.
Source§

impl From<P4_0> for AnyPin

Source§

fn from(value: P4_0) -> Self

Converts to this type from the input type.
Source§

impl From<P4_1> for AnyPin

Source§

fn from(value: P4_1) -> Self

Converts to this type from the input type.
Source§

impl From<P4_10> for AnyPin

Source§

fn from(value: P4_10) -> Self

Converts to this type from the input type.
Source§

impl From<P4_11> for AnyPin

Source§

fn from(value: P4_11) -> Self

Converts to this type from the input type.
Source§

impl From<P4_12> for AnyPin

Source§

fn from(value: P4_12) -> Self

Converts to this type from the input type.
Source§

impl From<P4_13> for AnyPin

Source§

fn from(value: P4_13) -> Self

Converts to this type from the input type.
Source§

impl From<P4_14> for AnyPin

Source§

fn from(value: P4_14) -> Self

Converts to this type from the input type.
Source§

impl From<P4_15> for AnyPin

Source§

fn from(value: P4_15) -> Self

Converts to this type from the input type.
Source§

impl From<P4_16> for AnyPin

Source§

fn from(value: P4_16) -> Self

Converts to this type from the input type.
Source§

impl From<P4_17> for AnyPin

Source§

fn from(value: P4_17) -> Self

Converts to this type from the input type.
Source§

impl From<P4_18> for AnyPin

Source§

fn from(value: P4_18) -> Self

Converts to this type from the input type.
Source§

impl From<P4_19> for AnyPin

Source§

fn from(value: P4_19) -> Self

Converts to this type from the input type.
Source§

impl From<P4_2> for AnyPin

Source§

fn from(value: P4_2) -> Self

Converts to this type from the input type.
Source§

impl From<P4_20> for AnyPin

Source§

fn from(value: P4_20) -> Self

Converts to this type from the input type.
Source§

impl From<P4_21> for AnyPin

Source§

fn from(value: P4_21) -> Self

Converts to this type from the input type.
Source§

impl From<P4_22> for AnyPin

Source§

fn from(value: P4_22) -> Self

Converts to this type from the input type.
Source§

impl From<P4_23> for AnyPin

Source§

fn from(value: P4_23) -> Self

Converts to this type from the input type.
Source§

impl From<P4_24> for AnyPin

Source§

fn from(value: P4_24) -> Self

Converts to this type from the input type.
Source§

impl From<P4_25> for AnyPin

Source§

fn from(value: P4_25) -> Self

Converts to this type from the input type.
Source§

impl From<P4_26> for AnyPin

Source§

fn from(value: P4_26) -> Self

Converts to this type from the input type.
Source§

impl From<P4_27> for AnyPin

Source§

fn from(value: P4_27) -> Self

Converts to this type from the input type.
Source§

impl From<P4_28> for AnyPin

Source§

fn from(value: P4_28) -> Self

Converts to this type from the input type.
Source§

impl From<P4_29> for AnyPin

Source§

fn from(value: P4_29) -> Self

Converts to this type from the input type.
Source§

impl From<P4_3> for AnyPin

Source§

fn from(value: P4_3) -> Self

Converts to this type from the input type.
Source§

impl From<P4_30> for AnyPin

Source§

fn from(value: P4_30) -> Self

Converts to this type from the input type.
Source§

impl From<P4_31> for AnyPin

Source§

fn from(value: P4_31) -> Self

Converts to this type from the input type.
Source§

impl From<P4_4> for AnyPin

Source§

fn from(value: P4_4) -> Self

Converts to this type from the input type.
Source§

impl From<P4_5> for AnyPin

Source§

fn from(value: P4_5) -> Self

Converts to this type from the input type.
Source§

impl From<P4_6> for AnyPin

Source§

fn from(value: P4_6) -> Self

Converts to this type from the input type.
Source§

impl From<P4_7> for AnyPin

Source§

fn from(value: P4_7) -> Self

Converts to this type from the input type.
Source§

impl From<P4_8> for AnyPin

Source§

fn from(value: P4_8) -> Self

Converts to this type from the input type.
Source§

impl From<P4_9> for AnyPin

Source§

fn from(value: P4_9) -> Self

Converts to this type from the input type.
Source§

impl GpioPin for AnyPin

Source§

fn degrade(self) -> AnyPin

Type-erase 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, 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.