esp_hal::gpio

Struct GpioPin

Source
pub struct GpioPin<const GPIONUM: u8>;
Expand description

GPIO pin

Implementations§

Source§

impl<const GPIONUM: u8> GpioPin<GPIONUM>
where Self: Pin,

Source

pub unsafe fn steal() -> Self

Create a pin out of thin air.

§Safety

Ensure that only one instance of a pin exists at one time.

Source

pub fn split(self) -> (InputSignal, OutputSignal)

Split the pin into an input and output signal.

Peripheral signals allow connecting peripherals together without using external hardware.

Trait Implementations§

Source§

impl AdcChannel for GpioPin<0>

Source§

const CHANNEL: u8 = 0u8

Channel number used by the ADC
Source§

impl AdcChannel for GpioPin<1>

Source§

const CHANNEL: u8 = 1u8

Channel number used by the ADC
Source§

impl AdcChannel for GpioPin<2>

Source§

const CHANNEL: u8 = 2u8

Channel number used by the ADC
Source§

impl AdcChannel for GpioPin<3>

Source§

const CHANNEL: u8 = 3u8

Channel number used by the ADC
Source§

impl AdcChannel for GpioPin<4>

Source§

const CHANNEL: u8 = 4u8

Channel number used by the ADC
Source§

impl AdcChannel for GpioPin<5>

Source§

const CHANNEL: u8 = 5u8

Channel number used by the ADC
Source§

impl AdcChannel for GpioPin<6>

Source§

const CHANNEL: u8 = 6u8

Channel number used by the ADC
Source§

impl Channel<ADC1> for GpioPin<0>

Source§

type ID = u8

Channel ID type Read more
Source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
Source§

impl Channel<ADC1> for GpioPin<1>

Source§

type ID = u8

Channel ID type Read more
Source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
Source§

impl Channel<ADC1> for GpioPin<2>

Source§

type ID = u8

Channel ID type Read more
Source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
Source§

impl Channel<ADC1> for GpioPin<3>

Source§

type ID = u8

Channel ID type Read more
Source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
Source§

impl Channel<ADC1> for GpioPin<4>

Source§

type ID = u8

Channel ID type Read more
Source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
Source§

impl Channel<ADC1> for GpioPin<5>

Source§

type ID = u8

Channel ID type Read more
Source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
Source§

impl Channel<ADC1> for GpioPin<6>

Source§

type ID = u8

Channel ID type Read more
Source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
Source§

impl From<GpioPin<0>> for AnyPin

Source§

fn from(pin: GpioPin<0>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<1>> for AnyPin

Source§

fn from(pin: GpioPin<1>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<10>> for AnyPin

Source§

fn from(pin: GpioPin<10>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<11>> for AnyPin

Source§

fn from(pin: GpioPin<11>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<12>> for AnyPin

Source§

fn from(pin: GpioPin<12>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<13>> for AnyPin

Source§

fn from(pin: GpioPin<13>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<14>> for AnyPin

Source§

fn from(pin: GpioPin<14>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<15>> for AnyPin

Source§

fn from(pin: GpioPin<15>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<16>> for AnyPin

Source§

fn from(pin: GpioPin<16>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<17>> for AnyPin

Source§

fn from(pin: GpioPin<17>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<18>> for AnyPin

Source§

fn from(pin: GpioPin<18>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<19>> for AnyPin

Source§

fn from(pin: GpioPin<19>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<2>> for AnyPin

Source§

fn from(pin: GpioPin<2>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<20>> for AnyPin

Source§

fn from(pin: GpioPin<20>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<21>> for AnyPin

Source§

fn from(pin: GpioPin<21>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<22>> for AnyPin

Source§

fn from(pin: GpioPin<22>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<23>> for AnyPin

Source§

fn from(pin: GpioPin<23>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<24>> for AnyPin

Source§

fn from(pin: GpioPin<24>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<25>> for AnyPin

Source§

fn from(pin: GpioPin<25>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<26>> for AnyPin

Source§

fn from(pin: GpioPin<26>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<27>> for AnyPin

Source§

fn from(pin: GpioPin<27>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<28>> for AnyPin

Source§

fn from(pin: GpioPin<28>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<29>> for AnyPin

Source§

fn from(pin: GpioPin<29>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<3>> for AnyPin

Source§

fn from(pin: GpioPin<3>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<30>> for AnyPin

Source§

fn from(pin: GpioPin<30>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<4>> for AnyPin

Source§

fn from(pin: GpioPin<4>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<5>> for AnyPin

Source§

fn from(pin: GpioPin<5>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<6>> for AnyPin

Source§

fn from(pin: GpioPin<6>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<7>> for AnyPin

Source§

fn from(pin: GpioPin<7>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<8>> for AnyPin

Source§

fn from(pin: GpioPin<8>) -> Self

Converts to this type from the input type.
Source§

impl From<GpioPin<9>> for AnyPin

Source§

fn from(pin: GpioPin<9>) -> Self

Converts to this type from the input type.
Source§

impl<const GPIONUM: u8> Peripheral for GpioPin<GPIONUM>
where Self: Pin,

Source§

type P = GpioPin<GPIONUM>

Peripheral singleton type
Source§

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

fn map_into<U>(self) -> U
where Self::P: Into<U>, U: Peripheral<P = U>,

Map the peripheral using Into. Read more
Source§

impl Pin for GpioPin<0>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<1>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<10>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<11>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<12>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<13>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<14>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<15>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<16>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<17>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<18>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<19>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<2>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<20>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<21>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<22>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<23>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<24>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<25>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<26>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<27>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<28>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<29>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<3>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<30>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<4>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<5>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<6>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<7>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<8>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl Pin for GpioPin<9>

Source§

fn number(&self) -> u8

GPIO number
Source§

fn degrade(self) -> AnyPin
where Self: Sized,

Type-erase (degrade) this pin into an AnyPin. Read more
Source§

impl RtcPin for GpioPin<0>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPin for GpioPin<1>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPin for GpioPin<2>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPin for GpioPin<3>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPin for GpioPin<4>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPin for GpioPin<5>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPin for GpioPin<6>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPin for GpioPin<7>

Source§

fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)

Set the LP properties of the pin. If mux is true then then pin is routed to LP_IO, when false it is routed to IO_MUX.

Source§

unsafe fn apply_wakeup(&mut self, wakeup: bool, level: u8)

Safety Read more
Source§

fn rtcio_pad_hold(&mut self, enable: bool)

Enable or disable PAD_HOLD
Source§

impl RtcPinWithResistors for GpioPin<0>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl RtcPinWithResistors for GpioPin<1>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl RtcPinWithResistors for GpioPin<2>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl RtcPinWithResistors for GpioPin<3>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl RtcPinWithResistors for GpioPin<4>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl RtcPinWithResistors for GpioPin<5>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl RtcPinWithResistors for GpioPin<6>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl RtcPinWithResistors for GpioPin<7>

Source§

fn rtcio_pullup(&mut self, enable: bool)

Enable/disable the internal pull-up resistor
Source§

fn rtcio_pulldown(&mut self, enable: bool)

Enable/disable the internal pull-down resistor
Source§

impl AnalogPin for GpioPin<0>

Source§

impl AnalogPin for GpioPin<1>

Source§

impl AnalogPin for GpioPin<2>

Source§

impl AnalogPin for GpioPin<3>

Source§

impl AnalogPin for GpioPin<4>

Source§

impl AnalogPin for GpioPin<5>

Source§

impl AnalogPin for GpioPin<6>

Source§

impl AnalogPin for GpioPin<7>

Source§

impl InputPin for GpioPin<0>

Source§

impl InputPin for GpioPin<1>

Source§

impl InputPin for GpioPin<10>

Source§

impl InputPin for GpioPin<11>

Source§

impl InputPin for GpioPin<12>

Source§

impl InputPin for GpioPin<13>

Source§

impl InputPin for GpioPin<14>

Source§

impl InputPin for GpioPin<15>

Source§

impl InputPin for GpioPin<16>

Source§

impl InputPin for GpioPin<17>

Source§

impl InputPin for GpioPin<18>

Source§

impl InputPin for GpioPin<19>

Source§

impl InputPin for GpioPin<2>

Source§

impl InputPin for GpioPin<20>

Source§

impl InputPin for GpioPin<21>

Source§

impl InputPin for GpioPin<22>

Source§

impl InputPin for GpioPin<23>

Source§

impl InputPin for GpioPin<24>

Source§

impl InputPin for GpioPin<25>

Source§

impl InputPin for GpioPin<26>

Source§

impl InputPin for GpioPin<27>

Source§

impl InputPin for GpioPin<28>

Source§

impl InputPin for GpioPin<29>

Source§

impl InputPin for GpioPin<3>

Source§

impl InputPin for GpioPin<30>

Source§

impl InputPin for GpioPin<4>

Source§

impl InputPin for GpioPin<5>

Source§

impl InputPin for GpioPin<6>

Source§

impl InputPin for GpioPin<7>

Source§

impl InputPin for GpioPin<8>

Source§

impl InputPin for GpioPin<9>

Source§

impl OutputPin for GpioPin<0>

Source§

impl OutputPin for GpioPin<1>

Source§

impl OutputPin for GpioPin<10>

Source§

impl OutputPin for GpioPin<11>

Source§

impl OutputPin for GpioPin<12>

Source§

impl OutputPin for GpioPin<13>

Source§

impl OutputPin for GpioPin<14>

Source§

impl OutputPin for GpioPin<15>

Source§

impl OutputPin for GpioPin<16>

Source§

impl OutputPin for GpioPin<17>

Source§

impl OutputPin for GpioPin<18>

Source§

impl OutputPin for GpioPin<19>

Source§

impl OutputPin for GpioPin<2>

Source§

impl OutputPin for GpioPin<20>

Source§

impl OutputPin for GpioPin<21>

Source§

impl OutputPin for GpioPin<22>

Source§

impl OutputPin for GpioPin<23>

Source§

impl OutputPin for GpioPin<24>

Source§

impl OutputPin for GpioPin<25>

Source§

impl OutputPin for GpioPin<26>

Source§

impl OutputPin for GpioPin<27>

Source§

impl OutputPin for GpioPin<28>

Source§

impl OutputPin for GpioPin<29>

Source§

impl OutputPin for GpioPin<3>

Source§

impl OutputPin for GpioPin<30>

Source§

impl OutputPin for GpioPin<4>

Source§

impl OutputPin for GpioPin<5>

Source§

impl OutputPin for GpioPin<6>

Source§

impl OutputPin for GpioPin<7>

Source§

impl OutputPin for GpioPin<8>

Source§

impl OutputPin for GpioPin<9>

Auto Trait Implementations§

§

impl<const GPIONUM: u8> Freeze for GpioPin<GPIONUM>

§

impl<const GPIONUM: u8> RefUnwindSafe for GpioPin<GPIONUM>

§

impl<const GPIONUM: u8> Send for GpioPin<GPIONUM>

§

impl<const GPIONUM: u8> Sync for GpioPin<GPIONUM>

§

impl<const GPIONUM: u8> Unpin for GpioPin<GPIONUM>

§

impl<const GPIONUM: u8> UnwindSafe for GpioPin<GPIONUM>

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> 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.
Source§

impl<P> PeripheralInput for P
where P: InputPin,

Source§

impl<P> PeripheralOutput for P
where P: OutputPin,