Struct esp_idf_hal::gpio::AnyIOPin

source ·
pub struct AnyIOPin { /* private fields */ }
Expand description

Generic Gpio input-output pin

Implementations§

source§

impl AnyIOPin

source

pub unsafe fn new(pin: i32) -> Self

§Safety

Care should be taken not to instantiate this Pin, if it is already instantiated and used elsewhere, or if it is not set already in the mode of operation which is being instantiated

source

pub const fn none() -> Option<Self>

Creates an Option<AnyIOPin>::None for pins that are optional in APIs.

Trait Implementations§

source§

impl From<AnyIOPin> for AnyInputPin

source§

fn from(pin: AnyIOPin) -> Self

Converts to this type from the input type.
source§

impl From<AnyIOPin> for AnyOutputPin

source§

fn from(pin: AnyIOPin) -> Self

Converts to this type from the input type.
source§

impl From<Gpio0> for AnyIOPin

source§

fn from(pin: Gpio0) -> Self

Converts to this type from the input type.
source§

impl From<Gpio1> for AnyIOPin

source§

fn from(pin: Gpio1) -> Self

Converts to this type from the input type.
source§

impl From<Gpio10> for AnyIOPin

source§

fn from(pin: Gpio10) -> Self

Converts to this type from the input type.
source§

impl From<Gpio11> for AnyIOPin

source§

fn from(pin: Gpio11) -> Self

Converts to this type from the input type.
source§

impl From<Gpio12> for AnyIOPin

source§

fn from(pin: Gpio12) -> Self

Converts to this type from the input type.
source§

impl From<Gpio13> for AnyIOPin

source§

fn from(pin: Gpio13) -> Self

Converts to this type from the input type.
source§

impl From<Gpio14> for AnyIOPin

source§

fn from(pin: Gpio14) -> Self

Converts to this type from the input type.
source§

impl From<Gpio15> for AnyIOPin

source§

fn from(pin: Gpio15) -> Self

Converts to this type from the input type.
source§

impl From<Gpio16> for AnyIOPin

source§

fn from(pin: Gpio16) -> Self

Converts to this type from the input type.
source§

impl From<Gpio17> for AnyIOPin

source§

fn from(pin: Gpio17) -> Self

Converts to this type from the input type.
source§

impl From<Gpio18> for AnyIOPin

source§

fn from(pin: Gpio18) -> Self

Converts to this type from the input type.
source§

impl From<Gpio19> for AnyIOPin

source§

fn from(pin: Gpio19) -> Self

Converts to this type from the input type.
source§

impl From<Gpio2> for AnyIOPin

source§

fn from(pin: Gpio2) -> Self

Converts to this type from the input type.
source§

impl From<Gpio20> for AnyIOPin

source§

fn from(pin: Gpio20) -> Self

Converts to this type from the input type.
source§

impl From<Gpio21> for AnyIOPin

source§

fn from(pin: Gpio21) -> Self

Converts to this type from the input type.
source§

impl From<Gpio3> for AnyIOPin

source§

fn from(pin: Gpio3) -> Self

Converts to this type from the input type.
source§

impl From<Gpio4> for AnyIOPin

source§

fn from(pin: Gpio4) -> Self

Converts to this type from the input type.
source§

impl From<Gpio5> for AnyIOPin

source§

fn from(pin: Gpio5) -> Self

Converts to this type from the input type.
source§

impl From<Gpio6> for AnyIOPin

source§

fn from(pin: Gpio6) -> Self

Converts to this type from the input type.
source§

impl From<Gpio7> for AnyIOPin

source§

fn from(pin: Gpio7) -> Self

Converts to this type from the input type.
source§

impl From<Gpio8> for AnyIOPin

source§

fn from(pin: Gpio8) -> Self

Converts to this type from the input type.
source§

impl From<Gpio9> for AnyIOPin

source§

fn from(pin: Gpio9) -> Self

Converts to this type from the input type.
source§

impl IOPin for AnyIOPin

source§

impl InputPin for AnyIOPin

source§

impl OutputPin for AnyIOPin

source§

impl Peripheral for AnyIOPin

§

type P = AnyIOPin

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut 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 AnyIOPin

source§

fn pin(&self) -> i32

source§

impl Send for AnyIOPin

Auto Trait Implementations§

§

impl Freeze for AnyIOPin

§

impl RefUnwindSafe for AnyIOPin

§

impl !Sync for AnyIOPin

§

impl Unpin for AnyIOPin

§

impl UnwindSafe for AnyIOPin

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.