[−][src]Struct stm32f4xx_hal::gpio::gpiod::PD10
Pin
Implementations
impl<MODE> PD10<MODE>
[src]
pub fn into_alternate_af0(self) -> PD10<Alternate<AF0>>
[src]
Configures the pin to operate in AF0 mode
pub fn into_alternate_af1(self) -> PD10<Alternate<AF1>>
[src]
Configures the pin to operate in AF1 mode
pub fn into_alternate_af2(self) -> PD10<Alternate<AF2>>
[src]
Configures the pin to operate in AF2 mode
pub fn into_alternate_af3(self) -> PD10<Alternate<AF3>>
[src]
Configures the pin to operate in AF3 mode
pub fn into_alternate_af4(self) -> PD10<Alternate<AF4>>
[src]
Configures the pin to operate in AF4 mode
pub fn into_alternate_af5(self) -> PD10<Alternate<AF5>>
[src]
Configures the pin to operate in AF5 mode
pub fn into_alternate_af6(self) -> PD10<Alternate<AF6>>
[src]
Configures the pin to operate in AF6 mode
pub fn into_alternate_af7(self) -> PD10<Alternate<AF7>>
[src]
Configures the pin to operate in AF7 mode
pub fn into_alternate_af8(self) -> PD10<Alternate<AF8>>
[src]
Configures the pin to operate in AF8 mode
pub fn into_alternate_af9(self) -> PD10<Alternate<AF9>>
[src]
Configures the pin to operate in AF9 mode
pub fn into_alternate_af10(self) -> PD10<Alternate<AF10>>
[src]
Configures the pin to operate in AF10 mode
pub fn into_alternate_af11(self) -> PD10<Alternate<AF11>>
[src]
Configures the pin to operate in AF11 mode
pub fn into_alternate_af12(self) -> PD10<Alternate<AF12>>
[src]
Configures the pin to operate in AF12 mode
pub fn into_alternate_af13(self) -> PD10<Alternate<AF13>>
[src]
Configures the pin to operate in AF13 mode
pub fn into_alternate_af14(self) -> PD10<Alternate<AF14>>
[src]
Configures the pin to operate in AF14 mode
pub fn into_alternate_af15(self) -> PD10<Alternate<AF15>>
[src]
Configures the pin to operate in AF15 mode
pub fn into_alternate_af0_open_drain(self) -> PD10<AlternateOD<AF0>>
[src]
Configures the pin to operate in AF0 open drain mode
pub fn into_alternate_af1_open_drain(self) -> PD10<AlternateOD<AF1>>
[src]
Configures the pin to operate in AF1 open drain mode
pub fn into_alternate_af2_open_drain(self) -> PD10<AlternateOD<AF2>>
[src]
Configures the pin to operate in AF2 open drain mode
pub fn into_alternate_af3_open_drain(self) -> PD10<AlternateOD<AF3>>
[src]
Configures the pin to operate in AF3 open drain mode
pub fn into_alternate_af4_open_drain(self) -> PD10<AlternateOD<AF4>>
[src]
Configures the pin to operate in AF4 open drain mode
pub fn into_alternate_af5_open_drain(self) -> PD10<AlternateOD<AF5>>
[src]
Configures the pin to operate in AF5 open drain mode
pub fn into_alternate_af6_open_drain(self) -> PD10<AlternateOD<AF6>>
[src]
Configures the pin to operate in AF6 open drain mode
pub fn into_alternate_af7_open_drain(self) -> PD10<AlternateOD<AF7>>
[src]
Configures the pin to operate in AF7 open drain mode
pub fn into_alternate_af8_open_drain(self) -> PD10<AlternateOD<AF8>>
[src]
Configures the pin to operate in AF8 open drain mode
pub fn into_alternate_af9_open_drain(self) -> PD10<AlternateOD<AF9>>
[src]
Configures the pin to operate in AF9 open drain mode
pub fn into_alternate_af10_open_drain(self) -> PD10<AlternateOD<AF10>>
[src]
Configures the pin to operate in AF10 open drain mode
pub fn into_alternate_af11_open_drain(self) -> PD10<AlternateOD<AF11>>
[src]
Configures the pin to operate in AF11 open drain mode
pub fn into_alternate_af12_open_drain(self) -> PD10<AlternateOD<AF12>>
[src]
Configures the pin to operate in AF12 open drain mode
pub fn into_alternate_af13_open_drain(self) -> PD10<AlternateOD<AF13>>
[src]
Configures the pin to operate in AF13 open drain mode
pub fn into_alternate_af14_open_drain(self) -> PD10<AlternateOD<AF14>>
[src]
Configures the pin to operate in AF14 open drain mode
pub fn into_alternate_af15_open_drain(self) -> PD10<AlternateOD<AF15>>
[src]
Configures the pin to operate in AF15 open drain mode
pub fn into_floating_input(self) -> PD10<Input<Floating>>
[src]
Configures the pin to operate as a floating input pin
pub fn into_pull_down_input(self) -> PD10<Input<PullDown>>
[src]
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(self) -> PD10<Input<PullUp>>
[src]
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(self) -> PD10<Output<OpenDrain>>
[src]
Configures the pin to operate as an open drain output pin
pub fn into_push_pull_output(self) -> PD10<Output<PushPull>>
[src]
Configures the pin to operate as an push pull output pin
pub fn into_analog(self) -> PD10<Analog>
[src]
Configures the pin to operate as an analog input pin
impl<MODE> PD10<Output<MODE>>
[src]
impl PD10<Output<OpenDrain>>
[src]
pub fn internal_pull_up(&mut self, on: bool)
[src]
Enables / disables the internal pull up
impl<MODE> PD10<Alternate<MODE>>
[src]
pub fn set_speed(self, speed: Speed) -> Self
[src]
Set pin speed
pub fn internal_pull_up(self, on: bool) -> Self
[src]
Enables / disables the internal pull up
impl<MODE> PD10<Alternate<MODE>>
[src]
pub fn set_open_drain(self) -> PD10<AlternateOD<MODE>>
[src]
Turns pin alternate configuration pin into open drain
impl<MODE> PD10<MODE>
[src]
pub fn downgrade(self) -> PD<MODE>
[src]
Erases the pin number from the type
This is useful when you want to collect the pins into an array where you need all the elements to have the same type
Trait Implementations
impl<MODE> Default for PD10<Output<MODE>>
[src]
impl<MODE> ExtiPin for PD10<Input<MODE>>
[src]
fn make_interrupt_source(&mut self, syscfg: &mut SYSCFG)
[src]
Configure EXTI Line $i to trigger from this pin.
fn trigger_on_edge(&mut self, exti: &mut EXTI, edge: Edge)
[src]
Generate interrupt on rising edge, falling edge or both
fn enable_interrupt(&mut self, exti: &mut EXTI)
[src]
Enable external interrupts from this pin.
fn disable_interrupt(&mut self, exti: &mut EXTI)
[src]
Disable external interrupts from this pin
fn clear_interrupt_pending_bit(&mut self)
[src]
Clear the interrupt pending bit for this pin
impl<MODE> InputPin for PD10<Output<MODE>>
[src]
type Error = Infallible
Error type
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<MODE> InputPin for PD10<Input<MODE>>
[src]
type Error = Infallible
Error type
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<MODE> OutputPin for PD10<Output<MODE>>
[src]
type Error = Infallible
Error type
fn set_high(&mut self) -> Result<(), Self::Error>
[src]
fn set_low(&mut self) -> Result<(), Self::Error>
[src]
impl<MODE> StatefulOutputPin for PD10<Output<MODE>>
[src]
fn is_set_high(&self) -> Result<bool, Self::Error>
[src]
fn is_set_low(&self) -> Result<bool, Self::Error>
[src]
Auto Trait Implementations
impl<MODE> Send for PD10<MODE> where
MODE: Send,
MODE: Send,
impl<MODE> Sync for PD10<MODE> where
MODE: Sync,
MODE: Sync,
impl<MODE> Unpin for PD10<MODE> where
MODE: Unpin,
MODE: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
type Error = ()
Error type
fn is_low(&self) -> Result<bool, <T as InputPin>::Error>
[src]
fn is_high(&self) -> Result<bool, <T as InputPin>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
fn set_low(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
fn set_high(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> StatefulOutputPin for T where
T: StatefulOutputPin + OutputPin,
[src]
T: StatefulOutputPin + OutputPin,
fn is_set_low(&self) -> Result<bool, <T as OutputPin>::Error>
[src]
fn is_set_high(&self) -> Result<bool, <T as OutputPin>::Error>
[src]
impl<P> ToggleableOutputPin for P where
P: Default,
[src]
P: Default,
type Error = <P as OutputPin>::Error
Error type
fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>
[src]
Toggle pin output
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,