Struct gd32f1x0_hal::gpio::gpioa::PA15
source · pub struct PA15<MODE> { /* private fields */ }
Implementations§
source§impl<MODE> PA15<MODE>where
MODE: Active,
impl<MODE> PA15<MODE>where
MODE: Active,
sourcepub fn into_floating_input(self, config: &mut Config) -> PA15<Input<Floating>>
pub fn into_floating_input(self, config: &mut Config) -> PA15<Input<Floating>>
Configures the pin to operate as a floating input.
sourcepub fn into_pull_up_input(self, config: &mut Config) -> PA15<Input<PullUp>>
pub fn into_pull_up_input(self, config: &mut Config) -> PA15<Input<PullUp>>
Configures the pin to operate as a pulled down input.
sourcepub fn into_pull_down_input(self, config: &mut Config) -> PA15<Input<PullDown>>
pub fn into_pull_down_input(self, config: &mut Config) -> PA15<Input<PullDown>>
Configures the pin to operate as a pulled down input.
sourcepub fn into_analog(self, config: &mut Config) -> PA15<Analog>
pub fn into_analog(self, config: &mut Config) -> PA15<Analog>
Configures the pin to operate as an analog input or output.
sourcepub fn into_open_drain_output(
self,
config: &mut Config
) -> PA15<Output<OpenDrain>>
pub fn into_open_drain_output( self, config: &mut Config ) -> PA15<Output<OpenDrain>>
Configures the pin to operate as an open drain output.
Trait Implementations§
source§impl<MODE> StatefulOutputPin for PA15<Output<MODE>>
impl<MODE> StatefulOutputPin for PA15<Output<MODE>>
impl Pin<Timer1, Ch0> for PA15<Alternate<AF2>>
impl RxPin<Usart1> for PA15<Alternate<AF1>>
Auto Trait Implementations§
impl<MODE> Freeze for PA15<MODE>where
MODE: Freeze,
impl<MODE> RefUnwindSafe for PA15<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PA15<MODE>where
MODE: Send,
impl<MODE> Sync for PA15<MODE>where
MODE: Sync,
impl<MODE> Unpin for PA15<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PA15<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