embassy-nxp

Crates

git

Versions

mimxrt1011

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

Source§

fn from(val: GPIO_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_01> for AnyPin

Source§

fn from(val: GPIO_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_02> for AnyPin

Source§

fn from(val: GPIO_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_03> for AnyPin

Source§

fn from(val: GPIO_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_04> for AnyPin

Source§

fn from(val: GPIO_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_05> for AnyPin

Source§

fn from(val: GPIO_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_06> for AnyPin

Source§

fn from(val: GPIO_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_07> for AnyPin

Source§

fn from(val: GPIO_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_08> for AnyPin

Source§

fn from(val: GPIO_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_09> for AnyPin

Source§

fn from(val: GPIO_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_10> for AnyPin

Source§

fn from(val: GPIO_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_11> for AnyPin

Source§

fn from(val: GPIO_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_12> for AnyPin

Source§

fn from(val: GPIO_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_13> for AnyPin

Source§

fn from(val: GPIO_13) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_00> for AnyPin

Source§

fn from(val: GPIO_AD_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_01> for AnyPin

Source§

fn from(val: GPIO_AD_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_02> for AnyPin

Source§

fn from(val: GPIO_AD_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_03> for AnyPin

Source§

fn from(val: GPIO_AD_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_04> for AnyPin

Source§

fn from(val: GPIO_AD_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_05> for AnyPin

Source§

fn from(val: GPIO_AD_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_06> for AnyPin

Source§

fn from(val: GPIO_AD_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_07> for AnyPin

Source§

fn from(val: GPIO_AD_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_08> for AnyPin

Source§

fn from(val: GPIO_AD_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_09> for AnyPin

Source§

fn from(val: GPIO_AD_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_10> for AnyPin

Source§

fn from(val: GPIO_AD_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_11> for AnyPin

Source§

fn from(val: GPIO_AD_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_12> for AnyPin

Source§

fn from(val: GPIO_AD_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_13> for AnyPin

Source§

fn from(val: GPIO_AD_13) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_AD_14> for AnyPin

Source§

fn from(val: GPIO_AD_14) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_00> for AnyPin

Source§

fn from(val: GPIO_SD_00) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_01> for AnyPin

Source§

fn from(val: GPIO_SD_01) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_02> for AnyPin

Source§

fn from(val: GPIO_SD_02) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_03> for AnyPin

Source§

fn from(val: GPIO_SD_03) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_04> for AnyPin

Source§

fn from(val: GPIO_SD_04) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_05> for AnyPin

Source§

fn from(val: GPIO_SD_05) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_06> for AnyPin

Source§

fn from(val: GPIO_SD_06) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_07> for AnyPin

Source§

fn from(val: GPIO_SD_07) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_08> for AnyPin

Source§

fn from(val: GPIO_SD_08) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_09> for AnyPin

Source§

fn from(val: GPIO_SD_09) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_10> for AnyPin

Source§

fn from(val: GPIO_SD_10) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_11> for AnyPin

Source§

fn from(val: GPIO_SD_11) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_12> for AnyPin

Source§

fn from(val: GPIO_SD_12) -> Self

Converts to this type from the input type.
Source§

impl From<GPIO_SD_13> for AnyPin

Source§

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