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,
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.
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>
Trait Implementations§
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Analog, GPIONUM>where
GpioPin<Analog, GPIONUM>: GpioProperties,
<GpioPin<Analog, GPIONUM> as GpioProperties>::PinType: IsAnalogPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
<GpioPin<Unknown, GPIONUM> as GpioProperties>::PinType: IsAnalogPin,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<Analog, GPIONUM>where
GpioPin<Analog, GPIONUM>: GpioProperties,
<GpioPin<Analog, GPIONUM> as GpioProperties>::PinType: IsAnalogPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
<GpioPin<Unknown, GPIONUM> as GpioProperties>::PinType: IsAnalogPin,
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<InvertedInput<Floating>, GPIONUM>where
GpioPin<InvertedInput<Floating>, GPIONUM>: GpioProperties,
<GpioPin<InvertedInput<Floating>, GPIONUM> as GpioProperties>::PinType: IsInputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<InvertedInput<Floating>, GPIONUM>where
GpioPin<InvertedInput<Floating>, GPIONUM>: GpioProperties,
<GpioPin<InvertedInput<Floating>, GPIONUM> as GpioProperties>::PinType: IsInputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<InvertedInput<PullDown>, GPIONUM>where
GpioPin<InvertedInput<PullDown>, GPIONUM>: GpioProperties,
<GpioPin<InvertedInput<PullDown>, GPIONUM> as GpioProperties>::PinType: IsInputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<InvertedInput<PullDown>, GPIONUM>where
GpioPin<InvertedInput<PullDown>, GPIONUM>: GpioProperties,
<GpioPin<InvertedInput<PullDown>, GPIONUM> as GpioProperties>::PinType: IsInputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<InvertedInput<PullUp>, GPIONUM>where
GpioPin<InvertedInput<PullUp>, GPIONUM>: GpioProperties,
<GpioPin<InvertedInput<PullUp>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<InvertedInput<PullUp>, GPIONUM>where
GpioPin<InvertedInput<PullUp>, GPIONUM>: GpioProperties,
<GpioPin<InvertedInput<PullUp>, GPIONUM> as GpioProperties>::PinType: IsOutputPin,
GpioPin<Unknown, GPIONUM>: GpioProperties,
source§impl<const GPIONUM: u8> From<GpioPin<Unknown, GPIONUM>> for GpioPin<InvertedOutput<OpenDrain>, GPIONUM>where
GpioPin<InvertedOutput<OpenDrain>, GPIONUM>: GpioProperties,
<GpioPin<InvertedOutput<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<InvertedOutput<OpenDrain>, GPIONUM>where
GpioPin<InvertedOutput<OpenDrain>, GPIONUM>: GpioProperties,
<GpioPin<InvertedOutput<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<InvertedOutput<PushPull>, GPIONUM>where
GpioPin<InvertedOutput<PushPull>, GPIONUM>: GpioProperties,
<GpioPin<InvertedOutput<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<InvertedOutput<PushPull>, GPIONUM>where
GpioPin<InvertedOutput<PushPull>, GPIONUM>: GpioProperties,
<GpioPin<InvertedOutput<PushPull>, 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<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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 22>
impl<MODE> GpioProperties for GpioPin<MODE, 22>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio22Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 23>
impl<MODE> GpioProperties for GpioPin<MODE, 23>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio23Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 24>
impl<MODE> GpioProperties for GpioPin<MODE, 24>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio24Signals
type PinType = InputOutputPinType
source§impl<MODE> GpioProperties for GpioPin<MODE, 25>
impl<MODE> GpioProperties for GpioPin<MODE, 25>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio25Signals
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 = InputOutputAnalogPinType
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 = InputOutputAnalogPinType
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 = 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 = InputOutputAnalogPinType
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 = InputOutputAnalogPinType
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 = InputOnlyAnalogPinType
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 = InputOnlyAnalogPinType
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 = InputOnlyAnalogPinType
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 = InputOnlyAnalogPinType
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 = InputOnlyAnalogPinType
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 = InputOnlyAnalogPinType
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, 5>
impl<MODE> GpioProperties for GpioPin<MODE, 5>
type Bank = Bank0GpioRegisterAccess
type InterruptStatus = InterruptStatusRegisterAccessBank0
type Signals = Gpio5Signals
type PinType = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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 = InputOutputPinType
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.
fn rtc_number(&self) -> u8
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 12>
impl<MODE> RTCPin for GpioPin<MODE, 12>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 13>
impl<MODE> RTCPin for GpioPin<MODE, 13>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 14>
impl<MODE> RTCPin for GpioPin<MODE, 14>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 15>
impl<MODE> RTCPin for GpioPin<MODE, 15>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 2>
impl<MODE> RTCPin for GpioPin<MODE, 2>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 25>
impl<MODE> RTCPin for GpioPin<MODE, 25>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 26>
impl<MODE> RTCPin for GpioPin<MODE, 26>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 27>
impl<MODE> RTCPin for GpioPin<MODE, 27>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 32>
impl<MODE> RTCPin for GpioPin<MODE, 32>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 33>
impl<MODE> RTCPin for GpioPin<MODE, 33>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 34>
impl<MODE> RTCPin for GpioPin<MODE, 34>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 35>
impl<MODE> RTCPin for GpioPin<MODE, 35>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 36>
impl<MODE> RTCPin for GpioPin<MODE, 36>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 37>
impl<MODE> RTCPin for GpioPin<MODE, 37>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 38>
impl<MODE> RTCPin for GpioPin<MODE, 38>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 39>
impl<MODE> RTCPin for GpioPin<MODE, 39>
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
fn rtcio_pad_hold(&mut self, enable: bool)
source§impl<MODE> RTCPin for GpioPin<MODE, 4>
impl<MODE> RTCPin for GpioPin<MODE, 4>
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.