pub struct PA2<MODE>(/* private fields */);
Expand description
Specific GPIO pin
Implementations§
Source§impl<MODE> PA2<MODE>
impl<MODE> PA2<MODE>
Sourcepub fn into_analog(self) -> PA2<Analog>
pub fn into_analog(self) -> PA2<Analog>
Configures the PIN to operate as a high-impedance analog input
Sourcepub fn into_input<Mode: PullMode>(self) -> PA2<Input<Mode>>
pub fn into_input<Mode: PullMode>(self) -> PA2<Input<Mode>>
Configures the PIN to operate as Input Pin according to Mode.
Sourcepub fn set_pin_speed(&self, spd: PinSpeed)
pub fn set_pin_speed(&self, spd: PinSpeed)
Set pin drive strength of the pin
Sourcepub fn into_output<OMode: OutputMode, PUMode: PullMode>(
self,
) -> PA2<Output<OMode, PUMode>>
pub fn into_output<OMode: OutputMode, PUMode: PullMode>( self, ) -> PA2<Output<OMode, PUMode>>
Configures the PIN to operate as Output Pin according to OMode and PUMode
Sourcepub fn into_alt_fun<AF: AltFun>(self) -> PA2<AF>
pub fn into_alt_fun<AF: AltFun>(self) -> PA2<AF>
Configures the PIN to operate as Alternate Function.
Trait Implementations§
Auto Trait Implementations§
impl<MODE> Freeze for PA2<MODE>
impl<MODE> RefUnwindSafe for PA2<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PA2<MODE>where
MODE: Send,
impl<MODE> Sync for PA2<MODE>where
MODE: Sync,
impl<MODE> Unpin for PA2<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PA2<MODE>where
MODE: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more