Type Alias esp32c6_hal::gpio::NoPinType

source ·
pub type NoPinType = GpioPin<Unknown, 0>;
Expand description

Convenience type-alias for a no-pin / don’t care - pin

Aliased Type§

struct NoPinType { /* private fields */ }

Implementations

source§

impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties,

source

pub fn into_floating_input(self) -> GpioPin<Input<Floating>, GPIONUM>

source

pub fn into_pull_up_input(self) -> GpioPin<Input<PullUp>, GPIONUM>

source

pub fn into_pull_down_input(self) -> GpioPin<Input<PullDown>, GPIONUM>

source§

impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties, <GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,

source

pub fn into_push_pull_output(self) -> GpioPin<Output<PushPull>, GPIONUM>

source

pub fn into_open_drain_output(self) -> GpioPin<Output<OpenDrain>, GPIONUM>

source

pub fn into_alternate_1(self) -> GpioPin<Alternate<AF1>, GPIONUM>

source

pub fn into_alternate_2(self) -> GpioPin<Alternate<AF2>, GPIONUM>

source§

impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties, <GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsAnalogPin,

source

pub fn into_analog(self) -> GpioPin<Analog, GPIONUM>

source§

impl<MODE> GpioPin<MODE, 0>

source

pub fn degrade(self) -> AnyPin<MODE>

Trait Implementations

source§

impl<MODE, const GPIONUM: u8> Peripheral for GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties,

§

type P = GpioPin<MODE, GPIONUM>

Peripheral singleton type
source§

unsafe fn clone_unchecked( &mut self ) -> <GpioPin<MODE, GPIONUM> as Peripheral>::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<MODE> GpioProperties for GpioPin<MODE, 0>

§

type Bank = Bank0GpioRegisterAccess

§

type InterruptStatus = InterruptStatusRegisterAccessBank0

§

type Signals = Gpio0Signals

§

type PinType = InputOutputAnalogPinType

source§

impl<MODE, const GPIONUM: u8> Pin for GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties,

source§

fn number(&self) -> u8

source§

fn sleep_mode(&mut self, on: bool)

source§

fn set_alternate_function(&mut self, alternate: AlternateFunction)

source§

fn listen_with_options( &mut self, event: Event, int_enable: bool, nmi_enable: bool, wake_up_from_light_sleep: bool )

source§

fn is_listening(&self) -> bool

source§

fn unlisten(&mut self)

source§

fn clear_interrupt(&mut self)

source§

fn listen(&mut self, event: Event)

source§

impl<MODE> IntoLowPowerPin<0> for GpioPin<MODE, 0>

source§

impl<MODE, const GPIONUM: u8> InputPin for GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties,

source§

fn set_to_input(&mut self) -> &mut GpioPin<MODE, GPIONUM>

source§

fn enable_input(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>

source§

fn enable_input_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>

source§

fn is_input_high(&self) -> bool

source§

fn connect_input_to_peripheral_with_options( &mut self, signal: InputSignal, invert: bool, force_via_gpio_mux: bool ) -> &mut GpioPin<MODE, GPIONUM>

source§

fn disconnect_input_from_peripheral( &mut self, signal: InputSignal ) -> &mut GpioPin<MODE, GPIONUM>

Remove a connected signal from this input pin. Read more
source§

fn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self

source§

impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties, <GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,

source§

fn set_to_open_drain_output(&mut self) -> &mut GpioPin<MODE, GPIONUM>

source§

fn set_to_push_pull_output(&mut self) -> &mut GpioPin<MODE, GPIONUM>

source§

fn enable_output(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>

source§

fn set_output_high(&mut self, high: bool) -> &mut GpioPin<MODE, GPIONUM>

source§

fn set_drive_strength( &mut self, strength: DriveStrength ) -> &mut GpioPin<MODE, GPIONUM>

source§

fn enable_open_drain(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>

source§

fn internal_pull_up_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>

source§

fn internal_pull_down_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>

source§

fn enable_output_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>

source§

fn connect_peripheral_to_output_with_options( &mut self, signal: OutputSignal, invert: bool, invert_enable: bool, enable_from_gpio: bool, force_via_gpio_mux: bool ) -> &mut GpioPin<MODE, GPIONUM>

source§

fn disconnect_peripheral_from_output(&mut self) -> &mut GpioPin<MODE, GPIONUM>

Remove this output pin from a connected signal. Read more
source§

fn internal_pull_up(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>

source§

fn internal_pull_down(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>

source§

fn connect_peripheral_to_output(&mut self, signal: OutputSignal) -> &mut Self