pub struct Pin<Gpio, Index, Mode> { /* private fields */ }
Expand description
Generic pin
Implementations§
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>where
Gpio: GpioStatic,
Index: Index,
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>where
Gpio: GpioStatic,
Index: Index,
Sourcepub fn into_input(self, moder: &mut Gpio::MODER) -> Pin<Gpio, Index, Input>
pub fn into_input(self, moder: &mut Gpio::MODER) -> Pin<Gpio, Index, Input>
Configures the pin to operate as an input pin
Sourcepub fn into_floating_input(
self,
moder: &mut Gpio::MODER,
pupdr: &mut Gpio::PUPDR,
) -> Pin<Gpio, Index, Input>
pub fn into_floating_input( self, moder: &mut Gpio::MODER, pupdr: &mut Gpio::PUPDR, ) -> Pin<Gpio, Index, Input>
Convenience method to configure the pin to operate as an input pin and set the internal resistor floating
Sourcepub fn into_pull_up_input(
self,
moder: &mut Gpio::MODER,
pupdr: &mut Gpio::PUPDR,
) -> Pin<Gpio, Index, Input>
pub fn into_pull_up_input( self, moder: &mut Gpio::MODER, pupdr: &mut Gpio::PUPDR, ) -> Pin<Gpio, Index, Input>
Convenience method to configure the pin to operate as an input pin and set the internal resistor pull-up
Sourcepub fn into_pull_down_input(
self,
moder: &mut Gpio::MODER,
pupdr: &mut Gpio::PUPDR,
) -> Pin<Gpio, Index, Input>
pub fn into_pull_down_input( self, moder: &mut Gpio::MODER, pupdr: &mut Gpio::PUPDR, ) -> Pin<Gpio, Index, Input>
Convenience method to configure the pin to operate as an input pin and set the internal resistor pull-down
Sourcepub fn into_push_pull_output(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
) -> Pin<Gpio, Index, Output<PushPull>>
pub fn into_push_pull_output( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, ) -> Pin<Gpio, Index, Output<PushPull>>
Configures the pin to operate as a push-pull output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn set_internal_resistor(
&mut self,
pupdr: &mut Gpio::PUPDR,
resistor: Resistor,
)
pub fn set_internal_resistor( &mut self, pupdr: &mut Gpio::PUPDR, resistor: Resistor, )
Set the internal pull-up and pull-down resistor
Sourcepub fn internal_pull_up(&mut self, pupdr: &mut Gpio::PUPDR, on: bool)
pub fn internal_pull_up(&mut self, pupdr: &mut Gpio::PUPDR, on: bool)
Enables / disables the internal pull up (Provided for compatibility with other stm32 HALs)
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn interrupt(&self) -> Interrupt
pub fn interrupt(&self) -> Interrupt
NVIC interrupt number of interrupt from this pin
Used to unmask / enable the interrupt with cortex_m::peripheral::NVIC::unmask()
.
This is also useful for all other cortex_m::peripheral::NVIC
functions.
Sourcepub fn trigger_on_edge(&mut self, exti: &mut EXTI, edge: Edge)
pub fn trigger_on_edge(&mut self, exti: &mut EXTI, edge: Edge)
Generate interrupt on rising edge, falling edge, or both
Sourcepub fn configure_interrupt(
&mut self,
exti: &mut EXTI,
enable: impl Into<Switch>,
)
pub fn configure_interrupt( &mut self, exti: &mut EXTI, enable: impl Into<Switch>, )
Configure external interrupts from this pin
§Note
Remeber to also configure the interrupt pin on
the SysCfg
site, with crate::syscfg::SysCfg::select_exti_interrupt_source()
Sourcepub fn enable_interrupt(&mut self, exti: &mut EXTI)
pub fn enable_interrupt(&mut self, exti: &mut EXTI)
Enable external interrupts from this pin
§Note
Remeber to also configure the interrupt pin on
the SysCfg
site, with crate::syscfg::SysCfg::select_exti_interrupt_source()
Sourcepub fn disable_interrupt(&mut self, exti: &mut EXTI)
pub fn disable_interrupt(&mut self, exti: &mut EXTI)
Disable external interrupts from this pin
Sourcepub fn clear_interrupt(&mut self)
pub fn clear_interrupt(&mut self)
Clear the interrupt pending bit for this pin
Sourcepub fn is_interrupt_pending(&self) -> bool
pub fn is_interrupt_pending(&self) -> bool
Reads the interrupt pending bit for this pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>where
Gpio: GpioStatic,
Index: Index,
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>where
Gpio: GpioStatic,
Index: Index,
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af0_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<0>>::AFR,
) -> Pin<Gpio, Index, AF0<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af0_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<0>>::AFR, ) -> Pin<Gpio, Index, AF0<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af0_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<0>>::AFR,
) -> Pin<Gpio, Index, AF0<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af0_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<0>>::AFR, ) -> Pin<Gpio, Index, AF0<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af1_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<1>>::AFR,
) -> Pin<Gpio, Index, AF1<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af1_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<1>>::AFR, ) -> Pin<Gpio, Index, AF1<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af1_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<1>>::AFR,
) -> Pin<Gpio, Index, AF1<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af1_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<1>>::AFR, ) -> Pin<Gpio, Index, AF1<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af2_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<2>>::AFR,
) -> Pin<Gpio, Index, AF2<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af2_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<2>>::AFR, ) -> Pin<Gpio, Index, AF2<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af2_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<2>>::AFR,
) -> Pin<Gpio, Index, AF2<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af2_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<2>>::AFR, ) -> Pin<Gpio, Index, AF2<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af3_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<3>>::AFR,
) -> Pin<Gpio, Index, AF3<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af3_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<3>>::AFR, ) -> Pin<Gpio, Index, AF3<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af3_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<3>>::AFR,
) -> Pin<Gpio, Index, AF3<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af3_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<3>>::AFR, ) -> Pin<Gpio, Index, AF3<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af4_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<4>>::AFR,
) -> Pin<Gpio, Index, AF4<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af4_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<4>>::AFR, ) -> Pin<Gpio, Index, AF4<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af4_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<4>>::AFR,
) -> Pin<Gpio, Index, AF4<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af4_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<4>>::AFR, ) -> Pin<Gpio, Index, AF4<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af5_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<5>>::AFR,
) -> Pin<Gpio, Index, AF5<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af5_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<5>>::AFR, ) -> Pin<Gpio, Index, AF5<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af5_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<5>>::AFR,
) -> Pin<Gpio, Index, AF5<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af5_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<5>>::AFR, ) -> Pin<Gpio, Index, AF5<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af6_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<6>>::AFR,
) -> Pin<Gpio, Index, AF6<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af6_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<6>>::AFR, ) -> Pin<Gpio, Index, AF6<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af6_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<6>>::AFR,
) -> Pin<Gpio, Index, AF6<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af6_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<6>>::AFR, ) -> Pin<Gpio, Index, AF6<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af7_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<7>>::AFR,
) -> Pin<Gpio, Index, AF7<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af7_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<7>>::AFR, ) -> Pin<Gpio, Index, AF7<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af7_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<7>>::AFR,
) -> Pin<Gpio, Index, AF7<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af7_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<7>>::AFR, ) -> Pin<Gpio, Index, AF7<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af8_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<8>>::AFR,
) -> Pin<Gpio, Index, AF8<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af8_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<8>>::AFR, ) -> Pin<Gpio, Index, AF8<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af8_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<8>>::AFR,
) -> Pin<Gpio, Index, AF8<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af8_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<8>>::AFR, ) -> Pin<Gpio, Index, AF8<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af9_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<9>>::AFR,
) -> Pin<Gpio, Index, AF9<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af9_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<9>>::AFR, ) -> Pin<Gpio, Index, AF9<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af9_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<9>>::AFR,
) -> Pin<Gpio, Index, AF9<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af9_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<9>>::AFR, ) -> Pin<Gpio, Index, AF9<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af10_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<10>>::AFR,
) -> Pin<Gpio, Index, AF10<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af10_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<10>>::AFR, ) -> Pin<Gpio, Index, AF10<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af10_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<10>>::AFR,
) -> Pin<Gpio, Index, AF10<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af10_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<10>>::AFR, ) -> Pin<Gpio, Index, AF10<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af11_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<11>>::AFR,
) -> Pin<Gpio, Index, AF11<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af11_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<11>>::AFR, ) -> Pin<Gpio, Index, AF11<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af11_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<11>>::AFR,
) -> Pin<Gpio, Index, AF11<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af11_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<11>>::AFR, ) -> Pin<Gpio, Index, AF11<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af12_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<12>>::AFR,
) -> Pin<Gpio, Index, AF12<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af12_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<12>>::AFR, ) -> Pin<Gpio, Index, AF12<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af12_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<12>>::AFR,
) -> Pin<Gpio, Index, AF12<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af12_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<12>>::AFR, ) -> Pin<Gpio, Index, AF12<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af13_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<13>>::AFR,
) -> Pin<Gpio, Index, AF13<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af13_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<13>>::AFR, ) -> Pin<Gpio, Index, AF13<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af13_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<13>>::AFR,
) -> Pin<Gpio, Index, AF13<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af13_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<13>>::AFR, ) -> Pin<Gpio, Index, AF13<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af14_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<14>>::AFR,
) -> Pin<Gpio, Index, AF14<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af14_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<14>>::AFR, ) -> Pin<Gpio, Index, AF14<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af14_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<14>>::AFR,
) -> Pin<Gpio, Index, AF14<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af14_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<14>>::AFR, ) -> Pin<Gpio, Index, AF14<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin
Source§impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
Sourcepub fn into_af15_push_pull(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<15>>::AFR,
) -> Pin<Gpio, Index, AF15<PushPull>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull()
instead
pub fn into_af15_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<15>>::AFR, ) -> Pin<Gpio, Index, AF15<PushPull>>
into_af_push_pull()
insteadConfigures the pin to operate as an alternate function push-pull output pin
Sourcepub fn into_af15_open_drain(
self,
moder: &mut Gpio::MODER,
otyper: &mut Gpio::OTYPER,
afr: &mut <Self as IntoAf<15>>::AFR,
) -> Pin<Gpio, Index, AF15<OpenDrain>>
👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain()
instead
pub fn into_af15_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<15>>::AFR, ) -> Pin<Gpio, Index, AF15<OpenDrain>>
into_af_open_drain()
insteadConfigures the pin to operate as an alternate function open-drain output pin