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