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,
<GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
<GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
sourcepub fn into_push_pull_output(self) -> GpioPin<Output<PushPull>, GPIONUM>
pub fn into_push_pull_output(self) -> GpioPin<Output<PushPull>, GPIONUM>
Configures the pin to operate as an push pull output pin
sourcepub fn into_open_drain_output(self) -> GpioPin<Output<OpenDrain>, GPIONUM>
pub fn into_open_drain_output(self) -> GpioPin<Output<OpenDrain>, GPIONUM>
Configures the pin to operate as an open drain output pin
sourcepub fn into_inverted_push_pull_output(
self
) -> GpioPin<InvertedOutput<PushPull>, GPIONUM>
pub fn into_inverted_push_pull_output( self ) -> GpioPin<InvertedOutput<PushPull>, GPIONUM>
Configures the pin to operate as an inverted push pull output pin. Only suitable to be passed into an peripheral driver
sourcepub fn into_inverted_open_drain_output(
self
) -> GpioPin<InvertedOutput<OpenDrain>, GPIONUM>
pub fn into_inverted_open_drain_output( self ) -> GpioPin<InvertedOutput<OpenDrain>, GPIONUM>
Configures the pin to operate as an open drain output pin. Only suitable to be passed into an peripheral driver
pub fn into_alternate_1(self) -> GpioPin<Alternate<AF1>, GPIONUM>
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,
impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
<GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsAnalogPin,
pub fn into_analog(self) -> GpioPin<Analog, GPIONUM>
source§impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
sourcepub fn into_floating_input(self) -> GpioPin<Input<Floating>, GPIONUM>
pub fn into_floating_input(self) -> GpioPin<Input<Floating>, GPIONUM>
Configures the pin to operate as a floating input pin
sourcepub fn into_pull_up_input(self) -> GpioPin<Input<PullUp>, GPIONUM>
pub fn into_pull_up_input(self) -> GpioPin<Input<PullUp>, GPIONUM>
Configures the pin to operate as a pulled up input pin
sourcepub fn into_pull_down_input(self) -> GpioPin<Input<PullDown>, GPIONUM>
pub fn into_pull_down_input(self) -> GpioPin<Input<PullDown>, GPIONUM>
Configures the pin to operate as a pulled down input pin
sourcepub fn into_inverted_floating_input(
self
) -> GpioPin<InvertedInput<Floating>, GPIONUM>
pub fn into_inverted_floating_input( self ) -> GpioPin<InvertedInput<Floating>, GPIONUM>
Configures the pin to operate as an inverted floating input pin. Only suitable to be passed into a peripheral driver.
sourcepub fn into_inverted_pull_up_input(
self
) -> GpioPin<InvertedInput<PullUp>, GPIONUM>
pub fn into_inverted_pull_up_input( self ) -> GpioPin<InvertedInput<PullUp>, GPIONUM>
Configures the pin to operate as an inverted pulled up input pin. Only suitable to be passed into a peripheral driver.
sourcepub fn into_inverted_pull_down_input(
self
) -> GpioPin<InvertedInput<PullDown>, GPIONUM>
pub fn into_inverted_pull_down_input( self ) -> GpioPin<InvertedInput<PullDown>, GPIONUM>
Configures the pin to operate as an inverted pulled down input pin. Only suitable to be passed into a peripheral driver.
Trait Implementations
source§impl<MODE> GpioProperties for GpioPin<MODE, 0>
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> InputPin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
MODE: InputMode,
impl<MODE, const GPIONUM: u8> InputPin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
MODE: InputMode,
fn set_to_input(&mut self) -> &mut GpioPin<MODE, GPIONUM>
fn enable_input(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>
fn enable_input_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>
fn is_input_high(&self) -> bool
fn connect_input_to_peripheral( &mut self, signal: InputSignal ) -> &mut GpioPin<MODE, GPIONUM>
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>
fn disconnect_input_from_peripheral( &mut self, signal: InputSignal ) -> &mut GpioPin<MODE, GPIONUM>
signal
from this input pin. Read moresource§impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
<GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
MODE: OutputMode,
impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
<GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
MODE: OutputMode,
fn set_to_open_drain_output(&mut self) -> &mut GpioPin<MODE, GPIONUM>
fn set_to_push_pull_output(&mut self) -> &mut GpioPin<MODE, GPIONUM>
fn enable_output(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>
fn set_output_high(&mut self, high: bool) -> &mut GpioPin<MODE, GPIONUM>
fn set_drive_strength( &mut self, strength: DriveStrength ) -> &mut GpioPin<MODE, GPIONUM>
fn enable_open_drain(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>
fn internal_pull_up_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>
fn internal_pull_down_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>
fn enable_output_in_sleep_mode( &mut self, on: bool ) -> &mut GpioPin<MODE, GPIONUM>
fn internal_pull_up(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>
fn internal_pull_down(&mut self, on: bool) -> &mut GpioPin<MODE, GPIONUM>
fn connect_peripheral_to_output( &mut self, signal: OutputSignal ) -> &mut GpioPin<MODE, GPIONUM>
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§impl<MODE, const GPIONUM: u8> Peripheral for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
impl<MODE, const GPIONUM: u8> Peripheral for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
source§unsafe fn clone_unchecked(
&mut self
) -> <GpioPin<MODE, GPIONUM> as Peripheral>::P
unsafe fn clone_unchecked( &mut self ) -> <GpioPin<MODE, GPIONUM> as Peripheral>::P
source§impl<MODE, const GPIONUM: u8> Pin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
impl<MODE, const GPIONUM: u8> Pin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
fn number(&self) -> u8
fn sleep_mode(&mut self, on: bool)
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
)
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
fn is_listening(&self) -> bool
source§fn is_interrupt_set(&self) -> bool
fn is_interrupt_set(&self) -> bool
source§fn clear_interrupt(&mut self)
fn clear_interrupt(&mut self)
source§impl<MODE> RTCPin for GpioPin<MODE, 0>
impl<MODE> RTCPin for GpioPin<MODE, 0>
source§fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)
fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)
Set the RTC properties of the pin. If mux
is true then then pin is
routed to RTC, when false it is routed to IO_MUX.