Struct esp32s3_hal::gpio::GpioPin
source · pub struct GpioPin<MODE, const GPIONUM: u8> { /* private fields */ }
Implementations§
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,
pub fn into_floating_input(self) -> GpioPin<Input<Floating>, GPIONUM>
pub fn into_pull_up_input(self) -> GpioPin<Input<PullUp>, GPIONUM>
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,
impl<MODE, const GPIONUM: u8> GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties, <GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
pub fn into_push_pull_output(self) -> GpioPin<Output<PushPull>, GPIONUM>
pub fn into_open_drain_output(self) -> GpioPin<Output<OpenDrain>, GPIONUM>
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>
Trait Implementations§
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Input<Floating>, GPIONUM>where
GpioPin<Input<Floating>, GPIONUM>: GpioProperties,
<GpioPin<Input<Floating>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Input<Floating>, GPIONUM>where GpioPin<Input<Floating>, GPIONUM>: GpioProperties, <GpioPin<Input<Floating>, GPIONUM> as GpioProperties>::PinType: IsOutputPin, GpioPin<Unknown, GPIONUM>: GpioProperties,
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Input<PullDown>, GPIONUM>where
GpioPin<Input<PullDown>, GPIONUM>: GpioProperties,
<GpioPin<Input<PullDown>, GPIONUM> as GpioProperties>::PinType: IsInputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Input<PullDown>, GPIONUM>where GpioPin<Input<PullDown>, GPIONUM>: GpioProperties, <GpioPin<Input<PullDown>, GPIONUM> as GpioProperties>::PinType: IsInputPin, GpioPin<Unknown, GPIONUM>: GpioProperties,
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Input<PullUp>, GPIONUM>where
GpioPin<Input<PullUp>, GPIONUM>: GpioProperties,
<GpioPin<Input<PullUp>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Input<PullUp>, GPIONUM>where GpioPin<Input<PullUp>, GPIONUM>: GpioProperties, <GpioPin<Input<PullUp>, GPIONUM> as GpioProperties>::PinType: IsOutputPin, GpioPin<Unknown, GPIONUM>: GpioProperties,
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Output<OpenDrain>, GPIONUM>where
GpioPin<Output<OpenDrain>, GPIONUM>: GpioProperties,
<GpioPin<Output<OpenDrain>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
<GpioPin<Unknown, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Output<OpenDrain>, GPIONUM>where GpioPin<Output<OpenDrain>, GPIONUM>: GpioProperties, <GpioPin<Output<OpenDrain>, GPIONUM> as GpioProperties>::PinType: IsOutputPin, GpioPin<Unknown, GPIONUM>: GpioProperties, <GpioPin<Unknown, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Output<PushPull>, GPIONUM>where
GpioPin<Output<PushPull>, GPIONUM>: GpioProperties,
<GpioPin<Output<PushPull>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
<GpioPin<Unknown, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Output<PushPull>, GPIONUM>where GpioPin<Output<PushPull>, GPIONUM>: GpioProperties, <GpioPin<Output<PushPull>, GPIONUM> as GpioProperties>::PinType: IsOutputPin, GpioPin<Unknown, GPIONUM>: GpioProperties, <GpioPin<Unknown, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
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> GpioProperties for GpioPin<MODE, 1>
impl<MODE> GpioProperties for GpioPin<MODE, 1>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio1Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 10>
impl<MODE> GpioProperties for GpioPin<MODE, 10>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio10Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 11>
impl<MODE> GpioProperties for GpioPin<MODE, 11>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio11Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 12>
impl<MODE> GpioProperties for GpioPin<MODE, 12>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio12Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 13>
impl<MODE> GpioProperties for GpioPin<MODE, 13>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio13Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 14>
impl<MODE> GpioProperties for GpioPin<MODE, 14>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio14Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 15>
impl<MODE> GpioProperties for GpioPin<MODE, 15>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio15Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 16>
impl<MODE> GpioProperties for GpioPin<MODE, 16>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio16Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 17>
impl<MODE> GpioProperties for GpioPin<MODE, 17>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio17Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 18>
impl<MODE> GpioProperties for GpioPin<MODE, 18>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio18Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 19>
impl<MODE> GpioProperties for GpioPin<MODE, 19>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio19Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 2>
impl<MODE> GpioProperties for GpioPin<MODE, 2>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio2Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 20>
impl<MODE> GpioProperties for GpioPin<MODE, 20>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio20Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 21>
impl<MODE> GpioProperties for GpioPin<MODE, 21>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio21Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 26>
impl<MODE> GpioProperties for GpioPin<MODE, 26>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio26Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 27>
impl<MODE> GpioProperties for GpioPin<MODE, 27>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio27Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 28>
impl<MODE> GpioProperties for GpioPin<MODE, 28>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio28Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 29>
impl<MODE> GpioProperties for GpioPin<MODE, 29>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio29Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 3>
impl<MODE> GpioProperties for GpioPin<MODE, 3>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio3Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 30>
impl<MODE> GpioProperties for GpioPin<MODE, 30>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio30Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 31>
impl<MODE> GpioProperties for GpioPin<MODE, 31>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio31Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 32>
impl<MODE> GpioProperties for GpioPin<MODE, 32>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio32Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 33>
impl<MODE> GpioProperties for GpioPin<MODE, 33>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio33Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 34>
impl<MODE> GpioProperties for GpioPin<MODE, 34>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio34Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 35>
impl<MODE> GpioProperties for GpioPin<MODE, 35>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio35Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 36>
impl<MODE> GpioProperties for GpioPin<MODE, 36>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio36Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 37>
impl<MODE> GpioProperties for GpioPin<MODE, 37>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio37Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 38>
impl<MODE> GpioProperties for GpioPin<MODE, 38>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio38Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 39>
impl<MODE> GpioProperties for GpioPin<MODE, 39>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio39Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 4>
impl<MODE> GpioProperties for GpioPin<MODE, 4>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio4Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 40>
impl<MODE> GpioProperties for GpioPin<MODE, 40>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio40Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 41>
impl<MODE> GpioProperties for GpioPin<MODE, 41>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio41Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 42>
impl<MODE> GpioProperties for GpioPin<MODE, 42>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio42Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 43>
impl<MODE> GpioProperties for GpioPin<MODE, 43>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio43Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 44>
impl<MODE> GpioProperties for GpioPin<MODE, 44>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio44Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 45>
impl<MODE> GpioProperties for GpioPin<MODE, 45>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio45Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 46>
impl<MODE> GpioProperties for GpioPin<MODE, 46>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio46Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 47>
impl<MODE> GpioProperties for GpioPin<MODE, 47>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio47Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 48>
impl<MODE> GpioProperties for GpioPin<MODE, 48>
type Bank = Bank1GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank1
type Signals = Gpio48Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 5>
impl<MODE> GpioProperties for GpioPin<MODE, 5>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio5Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 6>
impl<MODE> GpioProperties for GpioPin<MODE, 6>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio6Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 7>
impl<MODE> GpioProperties for GpioPin<MODE, 7>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio7Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 8>
impl<MODE> GpioProperties for GpioPin<MODE, 8>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio8Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 9>
impl<MODE> GpioProperties for GpioPin<MODE, 9>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio9Signals
type PinType = InputOutputAnalogPinType
source§impl<MODE, const GPIONUM: u8> InputPin for GpioPin<Input<MODE>, GPIONUM>where
GpioPin<Input<MODE>, GPIONUM>: GpioProperties,
impl<MODE, const GPIONUM: u8> InputPin for GpioPin<Input<MODE>, GPIONUM>where GpioPin<Input<MODE>, GPIONUM>: GpioProperties,
source§impl<MODE, const GPIONUM: u8> InputPin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
impl<MODE, const GPIONUM: u8> InputPin for GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties,
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_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 morefn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self
source§impl<const GPIONUM: u8> InputPin for GpioPin<Output<OpenDrain>, GPIONUM>where
GpioPin<Output<OpenDrain>, GPIONUM>: GpioProperties,
impl<const GPIONUM: u8> InputPin for GpioPin<Output<OpenDrain>, GPIONUM>where GpioPin<Output<OpenDrain>, GPIONUM>: GpioProperties,
source§impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<MODE, GPIONUM>where
GpioPin<MODE, GPIONUM>: GpioProperties,
<GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<MODE, GPIONUM>where GpioPin<MODE, GPIONUM>: GpioProperties, <GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
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 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>
fn disconnect_peripheral_from_output(&mut self) -> &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 Self
source§impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<Output<MODE>, GPIONUM>where
GpioPin<Output<MODE>, GPIONUM>: GpioProperties,
<GpioPin<Output<MODE>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<Output<MODE>, GPIONUM>where GpioPin<Output<MODE>, GPIONUM>: GpioProperties, <GpioPin<Output<MODE>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
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)
fn listen_with_options( &mut self, event: Event, int_enable: bool, nmi_enable: bool, wake_up_from_light_sleep: bool )
fn is_listening(&self) -> bool
fn unlisten(&mut self)
fn clear_interrupt(&mut self)
fn is_pcore_interrupt_set(&self) -> bool
fn is_pcore_non_maskable_interrupt_set(&self) -> bool
fn is_acore_interrupt_set(&self) -> bool
fn is_acore_non_maskable_interrupt_set(&self) -> bool
fn enable_hold(&mut self, _on: bool)
fn listen(&mut self, event: Event)
source§impl<MODE> RTCPin for GpioPin<MODE, 0>where
GpioPin<MODE, 0>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 0>where GpioPin<MODE, 0>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 1>where
GpioPin<MODE, 1>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 1>where GpioPin<MODE, 1>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 10>where
GpioPin<MODE, 10>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 10>where GpioPin<MODE, 10>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 11>where
GpioPin<MODE, 11>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 11>where GpioPin<MODE, 11>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 12>where
GpioPin<MODE, 12>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 12>where GpioPin<MODE, 12>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 13>where
GpioPin<MODE, 13>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 13>where GpioPin<MODE, 13>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 14>where
GpioPin<MODE, 14>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 14>where GpioPin<MODE, 14>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 15>where
GpioPin<MODE, 15>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 15>where GpioPin<MODE, 15>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 16>where
GpioPin<MODE, 16>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 16>where GpioPin<MODE, 16>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 17>where
GpioPin<MODE, 17>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 17>where GpioPin<MODE, 17>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 18>where
GpioPin<MODE, 18>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 18>where GpioPin<MODE, 18>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 19>where
GpioPin<MODE, 19>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 19>where GpioPin<MODE, 19>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 2>where
GpioPin<MODE, 2>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 2>where GpioPin<MODE, 2>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 20>where
GpioPin<MODE, 20>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 20>where GpioPin<MODE, 20>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 21>where
GpioPin<MODE, 21>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 21>where GpioPin<MODE, 21>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 3>where
GpioPin<MODE, 3>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 3>where GpioPin<MODE, 3>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 4>where
GpioPin<MODE, 4>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 4>where GpioPin<MODE, 4>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 5>where
GpioPin<MODE, 5>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 5>where GpioPin<MODE, 5>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 6>where
GpioPin<MODE, 6>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 6>where GpioPin<MODE, 6>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 7>where
GpioPin<MODE, 7>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 7>where GpioPin<MODE, 7>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 8>where
GpioPin<MODE, 8>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 8>where GpioPin<MODE, 8>: GpioProperties,
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.
fn rtc_number(&self) -> u8
source§impl<MODE> RTCPin for GpioPin<MODE, 9>where
GpioPin<MODE, 9>: GpioProperties,
impl<MODE> RTCPin for GpioPin<MODE, 9>where GpioPin<MODE, 9>: GpioProperties,
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.