Struct esp_idf_hal::gpio::AnyOutputPin

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

Generic Gpio output pin

Implementations§

source§

impl AnyOutputPin

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<AnyOutputPin>::None for pins that are optional in APIs.

Trait Implementations§

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 AnyOutputPin

source§

fn from(pin: Gpio0) -> Self

Converts to this type from the input type.
source§

impl From<Gpio1> for AnyOutputPin

source§

fn from(pin: Gpio1) -> Self

Converts to this type from the input type.
source§

impl From<Gpio10> for AnyOutputPin

source§

fn from(pin: Gpio10) -> Self

Converts to this type from the input type.
source§

impl From<Gpio11> for AnyOutputPin

source§

fn from(pin: Gpio11) -> Self

Converts to this type from the input type.
source§

impl From<Gpio12> for AnyOutputPin

source§

fn from(pin: Gpio12) -> Self

Converts to this type from the input type.
source§

impl From<Gpio13> for AnyOutputPin

source§

fn from(pin: Gpio13) -> Self

Converts to this type from the input type.
source§

impl From<Gpio14> for AnyOutputPin

source§

fn from(pin: Gpio14) -> Self

Converts to this type from the input type.
source§

impl From<Gpio15> for AnyOutputPin

source§

fn from(pin: Gpio15) -> Self

Converts to this type from the input type.
source§

impl From<Gpio16> for AnyOutputPin

source§

fn from(pin: Gpio16) -> Self

Converts to this type from the input type.
source§

impl From<Gpio17> for AnyOutputPin

source§

fn from(pin: Gpio17) -> Self

Converts to this type from the input type.
source§

impl From<Gpio18> for AnyOutputPin

source§

fn from(pin: Gpio18) -> Self

Converts to this type from the input type.
source§

impl From<Gpio19> for AnyOutputPin

source§

fn from(pin: Gpio19) -> Self

Converts to this type from the input type.
source§

impl From<Gpio2> for AnyOutputPin

source§

fn from(pin: Gpio2) -> Self

Converts to this type from the input type.
source§

impl From<Gpio20> for AnyOutputPin

source§

fn from(pin: Gpio20) -> Self

Converts to this type from the input type.
source§

impl From<Gpio21> for AnyOutputPin

source§

fn from(pin: Gpio21) -> Self

Converts to this type from the input type.
source§

impl From<Gpio3> for AnyOutputPin

source§

fn from(pin: Gpio3) -> Self

Converts to this type from the input type.
source§

impl From<Gpio4> for AnyOutputPin

source§

fn from(pin: Gpio4) -> Self

Converts to this type from the input type.
source§

impl From<Gpio5> for AnyOutputPin

source§

fn from(pin: Gpio5) -> Self

Converts to this type from the input type.
source§

impl From<Gpio6> for AnyOutputPin

source§

fn from(pin: Gpio6) -> Self

Converts to this type from the input type.
source§

impl From<Gpio7> for AnyOutputPin

source§

fn from(pin: Gpio7) -> Self

Converts to this type from the input type.
source§

impl From<Gpio8> for AnyOutputPin

source§

fn from(pin: Gpio8) -> Self

Converts to this type from the input type.
source§

impl From<Gpio9> for AnyOutputPin

source§

fn from(pin: Gpio9) -> Self

Converts to this type from the input type.
source§

impl OutputPin for AnyOutputPin

source§

impl Peripheral for AnyOutputPin

§

type P = AnyOutputPin

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 AnyOutputPin

source§

fn pin(&self) -> i32

source§

impl Send for AnyOutputPin

Auto Trait Implementations§

§

impl Freeze for AnyOutputPin

§

impl RefUnwindSafe for AnyOutputPin

§

impl !Sync for AnyOutputPin

§

impl Unpin for AnyOutputPin

§

impl UnwindSafe for AnyOutputPin

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.