embassy-nxp

Crates

git

Versions

mimxrt1062

Flavors

Struct AnyPin

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

Type-erased GPIO pin.

Implementations§

Source§

impl AnyPin

Source

pub unsafe fn steal(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<GPIO_AD_B0_00> for AnyPin

Source§

fn from(val: GPIO_AD_B0_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_01> for AnyPin

Source§

fn from(val: GPIO_AD_B0_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_02> for AnyPin

Source§

fn from(val: GPIO_AD_B0_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_03> for AnyPin

Source§

fn from(val: GPIO_AD_B0_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_04> for AnyPin

Source§

fn from(val: GPIO_AD_B0_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_05> for AnyPin

Source§

fn from(val: GPIO_AD_B0_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_06> for AnyPin

Source§

fn from(val: GPIO_AD_B0_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_07> for AnyPin

Source§

fn from(val: GPIO_AD_B0_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_08> for AnyPin

Source§

fn from(val: GPIO_AD_B0_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_09> for AnyPin

Source§

fn from(val: GPIO_AD_B0_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_10> for AnyPin

Source§

fn from(val: GPIO_AD_B0_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_11> for AnyPin

Source§

fn from(val: GPIO_AD_B0_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_12> for AnyPin

Source§

fn from(val: GPIO_AD_B0_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_13> for AnyPin

Source§

fn from(val: GPIO_AD_B0_13) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_14> for AnyPin

Source§

fn from(val: GPIO_AD_B0_14) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B0_15> for AnyPin

Source§

fn from(val: GPIO_AD_B0_15) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_00> for AnyPin

Source§

fn from(val: GPIO_AD_B1_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_01> for AnyPin

Source§

fn from(val: GPIO_AD_B1_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_02> for AnyPin

Source§

fn from(val: GPIO_AD_B1_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_03> for AnyPin

Source§

fn from(val: GPIO_AD_B1_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_04> for AnyPin

Source§

fn from(val: GPIO_AD_B1_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_05> for AnyPin

Source§

fn from(val: GPIO_AD_B1_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_06> for AnyPin

Source§

fn from(val: GPIO_AD_B1_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_07> for AnyPin

Source§

fn from(val: GPIO_AD_B1_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_08> for AnyPin

Source§

fn from(val: GPIO_AD_B1_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_09> for AnyPin

Source§

fn from(val: GPIO_AD_B1_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_10> for AnyPin

Source§

fn from(val: GPIO_AD_B1_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_11> for AnyPin

Source§

fn from(val: GPIO_AD_B1_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_12> for AnyPin

Source§

fn from(val: GPIO_AD_B1_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_13> for AnyPin

Source§

fn from(val: GPIO_AD_B1_13) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_14> for AnyPin

Source§

fn from(val: GPIO_AD_B1_14) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_B1_15> for AnyPin

Source§

fn from(val: GPIO_AD_B1_15) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_00> for AnyPin

Source§

fn from(val: GPIO_B0_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_01> for AnyPin

Source§

fn from(val: GPIO_B0_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_02> for AnyPin

Source§

fn from(val: GPIO_B0_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_03> for AnyPin

Source§

fn from(val: GPIO_B0_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_04> for AnyPin

Source§

fn from(val: GPIO_B0_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_05> for AnyPin

Source§

fn from(val: GPIO_B0_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_06> for AnyPin

Source§

fn from(val: GPIO_B0_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_07> for AnyPin

Source§

fn from(val: GPIO_B0_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_08> for AnyPin

Source§

fn from(val: GPIO_B0_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_09> for AnyPin

Source§

fn from(val: GPIO_B0_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_10> for AnyPin

Source§

fn from(val: GPIO_B0_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_11> for AnyPin

Source§

fn from(val: GPIO_B0_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_12> for AnyPin

Source§

fn from(val: GPIO_B0_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_13> for AnyPin

Source§

fn from(val: GPIO_B0_13) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_14> for AnyPin

Source§

fn from(val: GPIO_B0_14) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B0_15> for AnyPin

Source§

fn from(val: GPIO_B0_15) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_00> for AnyPin

Source§

fn from(val: GPIO_B1_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_01> for AnyPin

Source§

fn from(val: GPIO_B1_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_02> for AnyPin

Source§

fn from(val: GPIO_B1_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_03> for AnyPin

Source§

fn from(val: GPIO_B1_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_04> for AnyPin

Source§

fn from(val: GPIO_B1_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_05> for AnyPin

Source§

fn from(val: GPIO_B1_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_06> for AnyPin

Source§

fn from(val: GPIO_B1_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_07> for AnyPin

Source§

fn from(val: GPIO_B1_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_08> for AnyPin

Source§

fn from(val: GPIO_B1_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_09> for AnyPin

Source§

fn from(val: GPIO_B1_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_10> for AnyPin

Source§

fn from(val: GPIO_B1_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_11> for AnyPin

Source§

fn from(val: GPIO_B1_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_12> for AnyPin

Source§

fn from(val: GPIO_B1_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_13> for AnyPin

Source§

fn from(val: GPIO_B1_13) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_14> for AnyPin

Source§

fn from(val: GPIO_B1_14) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_B1_15> for AnyPin

Source§

fn from(val: GPIO_B1_15) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_00> for AnyPin

Source§

fn from(val: GPIO_EMC_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_01> for AnyPin

Source§

fn from(val: GPIO_EMC_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_02> for AnyPin

Source§

fn from(val: GPIO_EMC_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_03> for AnyPin

Source§

fn from(val: GPIO_EMC_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_04> for AnyPin

Source§

fn from(val: GPIO_EMC_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_05> for AnyPin

Source§

fn from(val: GPIO_EMC_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_06> for AnyPin

Source§

fn from(val: GPIO_EMC_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_07> for AnyPin

Source§

fn from(val: GPIO_EMC_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_08> for AnyPin

Source§

fn from(val: GPIO_EMC_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_09> for AnyPin

Source§

fn from(val: GPIO_EMC_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_10> for AnyPin

Source§

fn from(val: GPIO_EMC_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_11> for AnyPin

Source§

fn from(val: GPIO_EMC_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_12> for AnyPin

Source§

fn from(val: GPIO_EMC_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_13> for AnyPin

Source§

fn from(val: GPIO_EMC_13) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_14> for AnyPin

Source§

fn from(val: GPIO_EMC_14) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_15> for AnyPin

Source§

fn from(val: GPIO_EMC_15) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_16> for AnyPin

Source§

fn from(val: GPIO_EMC_16) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_17> for AnyPin

Source§

fn from(val: GPIO_EMC_17) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_18> for AnyPin

Source§

fn from(val: GPIO_EMC_18) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_19> for AnyPin

Source§

fn from(val: GPIO_EMC_19) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_20> for AnyPin

Source§

fn from(val: GPIO_EMC_20) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_21> for AnyPin

Source§

fn from(val: GPIO_EMC_21) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_22> for AnyPin

Source§

fn from(val: GPIO_EMC_22) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_23> for AnyPin

Source§

fn from(val: GPIO_EMC_23) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_24> for AnyPin

Source§

fn from(val: GPIO_EMC_24) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_25> for AnyPin

Source§

fn from(val: GPIO_EMC_25) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_26> for AnyPin

Source§

fn from(val: GPIO_EMC_26) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_27> for AnyPin

Source§

fn from(val: GPIO_EMC_27) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_28> for AnyPin

Source§

fn from(val: GPIO_EMC_28) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_29> for AnyPin

Source§

fn from(val: GPIO_EMC_29) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_30> for AnyPin

Source§

fn from(val: GPIO_EMC_30) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_31> for AnyPin

Source§

fn from(val: GPIO_EMC_31) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_32> for AnyPin

Source§

fn from(val: GPIO_EMC_32) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_33> for AnyPin

Source§

fn from(val: GPIO_EMC_33) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_34> for AnyPin

Source§

fn from(val: GPIO_EMC_34) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_35> for AnyPin

Source§

fn from(val: GPIO_EMC_35) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_36> for AnyPin

Source§

fn from(val: GPIO_EMC_36) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_37> for AnyPin

Source§

fn from(val: GPIO_EMC_37) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_38> for AnyPin

Source§

fn from(val: GPIO_EMC_38) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_39> for AnyPin

Source§

fn from(val: GPIO_EMC_39) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_40> for AnyPin

Source§

fn from(val: GPIO_EMC_40) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_EMC_41> for AnyPin

Source§

fn from(val: GPIO_EMC_41) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B0_00> for AnyPin

Source§

fn from(val: GPIO_SD_B0_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B0_01> for AnyPin

Source§

fn from(val: GPIO_SD_B0_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B0_02> for AnyPin

Source§

fn from(val: GPIO_SD_B0_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B0_03> for AnyPin

Source§

fn from(val: GPIO_SD_B0_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B0_04> for AnyPin

Source§

fn from(val: GPIO_SD_B0_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B0_05> for AnyPin

Source§

fn from(val: GPIO_SD_B0_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_00> for AnyPin

Source§

fn from(val: GPIO_SD_B1_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_01> for AnyPin

Source§

fn from(val: GPIO_SD_B1_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_02> for AnyPin

Source§

fn from(val: GPIO_SD_B1_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_03> for AnyPin

Source§

fn from(val: GPIO_SD_B1_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_04> for AnyPin

Source§

fn from(val: GPIO_SD_B1_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_05> for AnyPin

Source§

fn from(val: GPIO_SD_B1_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_06> for AnyPin

Source§

fn from(val: GPIO_SD_B1_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_07> for AnyPin

Source§

fn from(val: GPIO_SD_B1_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_08> for AnyPin

Source§

fn from(val: GPIO_SD_B1_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_09> for AnyPin

Source§

fn from(val: GPIO_SD_B1_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_10> for AnyPin

Source§

fn from(val: GPIO_SD_B1_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_B1_11> for AnyPin

Source§

fn from(val: GPIO_SD_B1_11) -> Self

Converts to this type from the input type.
Source§

impl From<PMIC_ON_REQ> for AnyPin

Source§

fn from(val: PMIC_ON_REQ) -> Self

Converts to this type from the input type.
Source§

impl From<PMIC_STBY_REQ> for AnyPin

Source§

fn from(val: PMIC_STBY_REQ) -> Self

Converts to this type from the input type.
Source§

impl From<WAKEUP> for AnyPin

Source§

fn from(val: WAKEUP) -> 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

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.