Struct gd32f1x0_hal::gpio::gpioc::PC13[][src]

pub struct PC13<MODE> { /* fields omitted */ }

Implementations

impl PC13<Debugger>[src]

pub fn activate(self) -> PC13<Input<Floating>>[src]

impl<MODE> PC13<MODE> where
    MODE: Active
[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]

Configures the pin to operate as a pulled down input.

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]

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]

Configures the pin to operate as an open drain output.

pub fn into_push_pull_output(
    self,
    config: &mut Config
) -> PC13<Output<PushPull>>
[src]

Configures the pin to operate as an open drain output.

pub fn downgrade(self) -> Pin<MODE>[src]

Erases the pin number and port from the type.

impl<MODE> PC13<Output<MODE>>[src]

pub fn set_speed(&mut self, config: &mut Config, speed: Speed)[src]

Configures the max slew rate of the pin

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]

Configures the pin to operate as an alternate function.

impl<AFN> PC13<Alternate<AFN>>[src]

pub fn set_speed(&mut self, config: &mut Config, speed: Speed)[src]

Configures the max slew rate of the pin

Trait Implementations

impl<MODE> InputPin for PC13<Input<MODE>>[src]

type Error = Infallible

Error type

fn is_high(&self) -> Result<bool, Self::Error>[src]

Is the input pin high?

fn is_low(&self) -> Result<bool, Self::Error>[src]

Is the input pin low?

impl InputPin for PC13<Output<OpenDrain>>[src]

type Error = Infallible

Error type

fn is_high(&self) -> Result<bool, Self::Error>[src]

Is the input pin high?

fn is_low(&self) -> Result<bool, Self::Error>[src]

Is the input pin low?

impl<MODE> OutputPin for PC13<Output<MODE>>[src]

type Error = Infallible

Error type

fn set_high(&mut self) -> Result<(), Self::Error>[src]

Drives the pin high Read more

fn set_low(&mut self) -> Result<(), Self::Error>[src]

Drives the pin low Read more

impl<MODE> StatefulOutputPin for PC13<Output<MODE>>[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]

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

impl<MODE> Sync for PC13<MODE> where
    MODE: Sync

impl<MODE> Unpin for PC13<MODE> where
    MODE: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<P> ToggleableOutputPin for P where
    P: Default
[src]

pub fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>[src]

Toggle pin output

type Error = <P as OutputPin>::Error

Error type

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.