Struct gd32f1x0_hal::gpio::gpioc::PC13 [−][src]
pub struct PC13<MODE> { /* fields omitted */ }
Implementations
impl<MODE> PC13<MODE> where
MODE: Active,
[src]
impl<MODE> PC13<MODE> where
MODE: Active,
[src]pub fn into_floating_input(self, config: &mut Config) -> PC13<Input<Floating>>
[src]
pub fn into_floating_input(self, config: &mut Config) -> PC13<Input<Floating>>
[src]Configures the pin to operate as a floating input.
pub fn into_pull_up_input(self, config: &mut Config) -> PC13<Input<PullUp>>
[src]
pub fn into_pull_up_input(self, config: &mut Config) -> PC13<Input<PullUp>>
[src]Configures the pin to operate as a pulled down input.
pub fn into_pull_down_input(self, config: &mut Config) -> PC13<Input<PullDown>>
[src]
pub fn into_pull_down_input(self, config: &mut Config) -> PC13<Input<PullDown>>
[src]Configures the pin to operate as a pulled down input.
pub fn into_analog(self, config: &mut Config) -> PC13<Analog>
[src]
pub fn into_analog(self, config: &mut Config) -> PC13<Analog>
[src]Configures the pin to operate as an analog input or output.
pub fn into_open_drain_output(
self,
config: &mut Config
) -> PC13<Output<OpenDrain>>
[src]
pub fn into_open_drain_output(
self,
config: &mut Config
) -> PC13<Output<OpenDrain>>
[src]Configures the pin to operate as an open drain output.
impl<MODE> PC13<MODE> where
MODE: Active,
[src]
impl<MODE> PC13<MODE> where
MODE: Active,
[src]pub fn into_alternate<AFN: AF>(
self,
config: &mut Config,
pull_mode: PullMode,
output_mode: OutputMode
) -> PC13<Alternate<AFN>>
[src]
pub fn into_alternate<AFN: AF>(
self,
config: &mut Config,
pull_mode: PullMode,
output_mode: OutputMode
) -> PC13<Alternate<AFN>>
[src]Configures the pin to operate as an alternate function.
Trait Implementations
impl<MODE> StatefulOutputPin for PC13<Output<MODE>>
[src]
impl<MODE> StatefulOutputPin for PC13<Output<MODE>>
[src]fn is_set_high(&self) -> Result<bool, Self::Error>
[src]
fn is_set_high(&self) -> Result<bool, Self::Error>
[src]Is the pin in drive high mode? Read more
fn is_set_low(&self) -> Result<bool, Self::Error>
[src]
fn is_set_low(&self) -> Result<bool, Self::Error>
[src]Is the pin in drive low mode? Read more
impl<MODE> Default for PC13<Output<MODE>>
[src]
Auto Trait Implementations
impl<MODE> Send for PC13<MODE> where
MODE: Send,
MODE: Send,
impl<MODE> Sync for PC13<MODE> where
MODE: Sync,
MODE: Sync,
impl<MODE> Unpin for PC13<MODE> where
MODE: Unpin,
MODE: Unpin,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<P> ToggleableOutputPin for P where
P: Default,
[src]
impl<P> ToggleableOutputPin for P where
P: Default,
[src]