pub type DmPad = Pin<PA24, AlternateH>;
Expand description
Default USB D- pad
Aliased Type§
struct DmPad { /* private fields */ }
Implementations
Source§impl<I, M> Pin<I, M>
impl<I, M> Pin<I, M>
Sourcepub fn into_floating_disabled(self) -> Pin<I, FloatingDisabled>
pub fn into_floating_disabled(self) -> Pin<I, FloatingDisabled>
Disable the pin and set it to float
Sourcepub fn into_pull_down_disabled(self) -> Pin<I, PullDownDisabled>
pub fn into_pull_down_disabled(self) -> Pin<I, PullDownDisabled>
Disable the pin and set it to pull down
Sourcepub fn into_pull_up_disabled(self) -> Pin<I, PullUpDisabled>
pub fn into_pull_up_disabled(self) -> Pin<I, PullUpDisabled>
Disable the pin and set it to pull up
Sourcepub fn into_floating_input(self) -> Pin<I, FloatingInput>
pub fn into_floating_input(self) -> Pin<I, FloatingInput>
Configure the pin to operate as a floating input
Sourcepub fn into_pull_down_input(self) -> Pin<I, PullDownInput>
pub fn into_pull_down_input(self) -> Pin<I, PullDownInput>
Configure the pin to operate as a pulled down input
Sourcepub fn into_pull_up_input(self) -> Pin<I, PullUpInput>
pub fn into_pull_up_input(self) -> Pin<I, PullUpInput>
Configure the pin to operate as a pulled up input
Sourcepub fn into_floating_interrupt(self) -> Pin<I, FloatingInterrupt>
pub fn into_floating_interrupt(self) -> Pin<I, FloatingInterrupt>
Configure the pin to operate as a floating interrupt
Sourcepub fn into_pull_down_interrupt(self) -> Pin<I, PullDownInterrupt>
pub fn into_pull_down_interrupt(self) -> Pin<I, PullDownInterrupt>
Configure the pin to operate as a pulled down interrupt
Sourcepub fn into_pull_up_interrupt(self) -> Pin<I, PullUpInterrupt>
pub fn into_pull_up_interrupt(self) -> Pin<I, PullUpInterrupt>
Configure the pin to operate as a pulled up interrupt
Sourcepub fn into_push_pull_output(self) -> Pin<I, PushPullOutput>
pub fn into_push_pull_output(self) -> Pin<I, PushPullOutput>
Configure the pin to operate as a push-pull output
Sourcepub fn into_readable_output(self) -> Pin<I, ReadableOutput>
pub fn into_readable_output(self) -> Pin<I, ReadableOutput>
Configure the pin to operate as a readable push pull output
Sourcepub fn into_alternate<C: AlternateConfig>(self) -> Pin<I, Alternate<C>>
pub fn into_alternate<C: AlternateConfig>(self) -> Pin<I, Alternate<C>>
Configure the pin to operate as the corresponding peripheral function.
The type C
indicates the desired peripheral function.
Sourcepub fn get_drive_strength(&self) -> bool
pub fn get_drive_strength(&self) -> bool
Read the current drive strength of the pin.
The drive strength is reset to normal on every change in pin mode.
Sourcepub fn set_drive_strength(&mut self, stronger: bool)
pub fn set_drive_strength(&mut self, stronger: bool)
Set the drive strength for the pin.
The drive strength is reset to normal on every change in pin mode.
Trait Implementations
Source§impl<M: PinMode> EicPin for Pin<PA24, M>
impl<M: PinMode> EicPin for Pin<PA24, M>
type Floating = ExtInt<Pin<PA24, Interrupt<Floating>>, <Pin<PA24, M> as EicPin>::ChId>
type PullUp = ExtInt<Pin<PA24, Interrupt<PullUp>>, <Pin<PA24, M> as EicPin>::ChId>
type PullDown = ExtInt<Pin<PA24, Interrupt<PullDown>>, <Pin<PA24, M> as EicPin>::ChId>
type ChId = Ch8
type InterruptSource = EIC_EXTINT_8
Source§fn into_floating_ei(self, channel: Channel<Self::ChId>) -> Self::Floating
fn into_floating_ei(self, channel: Channel<Self::ChId>) -> Self::Floating
Source§impl<I> From<Pin<I, Alternate<B>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<B>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateB>) -> Self
fn from(pin: Pin<I, AlternateB>) -> Self
Convert from AlternateB
to AlternateH
Source§impl<I> From<Pin<I, Alternate<C>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<C>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateC>) -> Self
fn from(pin: Pin<I, AlternateC>) -> Self
Convert from AlternateC
to AlternateH
Source§impl<I> From<Pin<I, Alternate<D>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<D>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateD>) -> Self
fn from(pin: Pin<I, AlternateD>) -> Self
Convert from AlternateD
to AlternateH
Source§impl<I> From<Pin<I, Alternate<E>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<E>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateE>) -> Self
fn from(pin: Pin<I, AlternateE>) -> Self
Convert from AlternateE
to AlternateH
Source§impl<I> From<Pin<I, Alternate<F>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<F>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateF>) -> Self
fn from(pin: Pin<I, AlternateF>) -> Self
Convert from AlternateF
to AlternateH
Source§impl<I> From<Pin<I, Alternate<G>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<G>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateG>) -> Self
fn from(pin: Pin<I, AlternateG>) -> Self
Convert from AlternateG
to AlternateH
Source§impl<I> From<Pin<I, Alternate<I>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<I>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateI>) -> Self
fn from(pin: Pin<I, AlternateI>) -> Self
Convert from AlternateI
to AlternateH
Source§impl<I> From<Pin<I, Alternate<J>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<J>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateJ>) -> Self
fn from(pin: Pin<I, AlternateJ>) -> Self
Convert from AlternateJ
to AlternateH
Source§impl<I> From<Pin<I, Alternate<K>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<K>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateK>) -> Self
fn from(pin: Pin<I, AlternateK>) -> Self
Convert from AlternateK
to AlternateH
Source§impl<I> From<Pin<I, Alternate<L>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<L>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateL>) -> Self
fn from(pin: Pin<I, AlternateL>) -> Self
Convert from AlternateL
to AlternateH
Source§impl<I> From<Pin<I, Alternate<M>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<M>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateM>) -> Self
fn from(pin: Pin<I, AlternateM>) -> Self
Convert from AlternateM
to AlternateH
Source§impl<I> From<Pin<I, Alternate<N>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Alternate<N>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, AlternateN>) -> Self
fn from(pin: Pin<I, AlternateN>) -> Self
Convert from AlternateN
to AlternateH
Source§impl<I> From<Pin<I, Disabled<Floating>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Disabled<Floating>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, FloatingDisabled>) -> Self
fn from(pin: Pin<I, FloatingDisabled>) -> Self
Convert from FloatingDisabled
to AlternateH
Source§impl<I> From<Pin<I, Disabled<PullDown>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Disabled<PullDown>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, PullDownDisabled>) -> Self
fn from(pin: Pin<I, PullDownDisabled>) -> Self
Convert from PullDownDisabled
to AlternateH
Source§impl<I> From<Pin<I, Disabled<PullUp>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Disabled<PullUp>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, PullUpDisabled>) -> Self
fn from(pin: Pin<I, PullUpDisabled>) -> Self
Convert from PullUpDisabled
to AlternateH
Source§impl<I> From<Pin<I, Input<Floating>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Input<Floating>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, FloatingInput>) -> Self
fn from(pin: Pin<I, FloatingInput>) -> Self
Convert from FloatingInput
to AlternateH
Source§impl<I> From<Pin<I, Input<PullDown>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Input<PullDown>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, PullDownInput>) -> Self
fn from(pin: Pin<I, PullDownInput>) -> Self
Convert from PullDownInput
to AlternateH
Source§impl<I> From<Pin<I, Input<PullUp>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Input<PullUp>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, PullUpInput>) -> Self
fn from(pin: Pin<I, PullUpInput>) -> Self
Convert from PullUpInput
to AlternateH
Source§impl<I> From<Pin<I, Interrupt<Floating>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Interrupt<Floating>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, FloatingInterrupt>) -> Self
fn from(pin: Pin<I, FloatingInterrupt>) -> Self
Convert from FloatingInterrupt
to AlternateH
Source§impl<I> From<Pin<I, Interrupt<PullDown>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Interrupt<PullDown>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, PullDownInterrupt>) -> Self
fn from(pin: Pin<I, PullDownInterrupt>) -> Self
Convert from PullDownInterrupt
to AlternateH
Source§impl<I> From<Pin<I, Interrupt<PullUp>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Interrupt<PullUp>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, PullUpInterrupt>) -> Self
fn from(pin: Pin<I, PullUpInterrupt>) -> Self
Convert from PullUpInterrupt
to AlternateH
Source§impl<I> From<Pin<I, Output<PushPull>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Output<PushPull>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, PushPullOutput>) -> Self
fn from(pin: Pin<I, PushPullOutput>) -> Self
Convert from PushPullOutput
to AlternateH
Source§impl<I> From<Pin<I, Output<Readable>>> for Pin<I, AlternateH>where
I: PinId,
impl<I> From<Pin<I, Output<Readable>>> for Pin<I, AlternateH>where
I: PinId,
Source§fn from(pin: Pin<I, ReadableOutput>) -> Self
fn from(pin: Pin<I, ReadableOutput>) -> Self
Convert from ReadableOutput
to AlternateH