Struct esp_idf_hal::gpio::AnyInputPin

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

Generic Gpio input pin

Implementations§

source§

impl AnyInputPin

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<AnyInputPin>::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<Gpio0> for AnyInputPin

source§

fn from(pin: Gpio0) -> Self

Converts to this type from the input type.
source§

impl From<Gpio1> for AnyInputPin

source§

fn from(pin: Gpio1) -> Self

Converts to this type from the input type.
source§

impl From<Gpio10> for AnyInputPin

source§

fn from(pin: Gpio10) -> Self

Converts to this type from the input type.
source§

impl From<Gpio11> for AnyInputPin

source§

fn from(pin: Gpio11) -> Self

Converts to this type from the input type.
source§

impl From<Gpio12> for AnyInputPin

source§

fn from(pin: Gpio12) -> Self

Converts to this type from the input type.
source§

impl From<Gpio13> for AnyInputPin

source§

fn from(pin: Gpio13) -> Self

Converts to this type from the input type.
source§

impl From<Gpio14> for AnyInputPin

source§

fn from(pin: Gpio14) -> Self

Converts to this type from the input type.
source§

impl From<Gpio15> for AnyInputPin

source§

fn from(pin: Gpio15) -> Self

Converts to this type from the input type.
source§

impl From<Gpio16> for AnyInputPin

source§

fn from(pin: Gpio16) -> Self

Converts to this type from the input type.
source§

impl From<Gpio17> for AnyInputPin

source§

fn from(pin: Gpio17) -> Self

Converts to this type from the input type.
source§

impl From<Gpio18> for AnyInputPin

source§

fn from(pin: Gpio18) -> Self

Converts to this type from the input type.
source§

impl From<Gpio19> for AnyInputPin

source§

fn from(pin: Gpio19) -> Self

Converts to this type from the input type.
source§

impl From<Gpio2> for AnyInputPin

source§

fn from(pin: Gpio2) -> Self

Converts to this type from the input type.
source§

impl From<Gpio20> for AnyInputPin

source§

fn from(pin: Gpio20) -> Self

Converts to this type from the input type.
source§

impl From<Gpio21> for AnyInputPin

source§

fn from(pin: Gpio21) -> Self

Converts to this type from the input type.
source§

impl From<Gpio3> for AnyInputPin

source§

fn from(pin: Gpio3) -> Self

Converts to this type from the input type.
source§

impl From<Gpio4> for AnyInputPin

source§

fn from(pin: Gpio4) -> Self

Converts to this type from the input type.
source§

impl From<Gpio5> for AnyInputPin

source§

fn from(pin: Gpio5) -> Self

Converts to this type from the input type.
source§

impl From<Gpio6> for AnyInputPin

source§

fn from(pin: Gpio6) -> Self

Converts to this type from the input type.
source§

impl From<Gpio7> for AnyInputPin

source§

fn from(pin: Gpio7) -> Self

Converts to this type from the input type.
source§

impl From<Gpio8> for AnyInputPin

source§

fn from(pin: Gpio8) -> Self

Converts to this type from the input type.
source§

impl From<Gpio9> for AnyInputPin

source§

fn from(pin: Gpio9) -> Self

Converts to this type from the input type.
source§

impl InputPin for AnyInputPin

source§

impl Peripheral for AnyInputPin

§

type P = AnyInputPin

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 AnyInputPin

source§

fn pin(&self) -> i32

source§

impl Send for AnyInputPin

Auto Trait Implementations§

§

impl Freeze for AnyInputPin

§

impl RefUnwindSafe for AnyInputPin

§

impl !Sync for AnyInputPin

§

impl Unpin for AnyInputPin

§

impl UnwindSafe for AnyInputPin

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.