[][src]Trait gd32vf103_hal::prelude::OutputPin

pub trait OutputPin {
    type Error;
    fn set_low(&mut self) -> Result<(), Self::Error>;
fn set_high(&mut self) -> Result<(), Self::Error>; }

Single digital push-pull output pin

Associated Types

type Error

Error type

Loading content...

Required methods

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

Drives the pin low

NOTE the actual electrical state of the pin may not actually be low, e.g. due to external electrical sources

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

Drives the pin high

NOTE the actual electrical state of the pin may not actually be high, e.g. due to external electrical sources

Loading content...

Implementors

impl<LOCKED, MODE> OutputPin for PA0<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA0<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA1<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA1<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA10<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA10<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA11<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA11<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA12<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA12<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA13<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA13<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA14<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA14<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA15<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA15<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA2<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA2<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA3<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA3<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA4<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA4<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA5<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA5<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA6<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA6<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA7<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA7<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA8<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA8<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA9<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PA9<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PAx<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB0<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB0<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB1<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB1<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB10<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB10<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB11<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB11<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB12<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB12<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB13<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB13<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB14<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB14<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB15<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB15<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB2<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB2<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB3<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB3<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB4<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB4<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB5<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB5<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB6<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB6<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB7<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB7<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB8<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB8<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB9<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PB9<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PBx<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC0<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC0<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC1<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC1<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC10<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC10<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC11<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC11<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC12<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC12<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC13<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC14<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC14<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC15<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC15<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC2<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC2<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC3<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC3<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC4<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC4<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC5<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC5<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC6<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC6<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC7<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC7<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC8<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC8<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC9<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PC9<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PCx<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD0<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD0<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD1<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD1<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD10<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD10<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD11<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD11<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD12<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD12<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD13<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD13<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD14<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD14<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD15<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD15<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD2<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD2<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD3<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD3<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD4<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD4<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD5<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD5<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD6<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD6<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD7<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD7<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD8<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD8<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD9<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PD9<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PDx<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE0<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE0<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE1<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE1<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE10<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE10<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE11<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE11<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE12<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE12<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE13<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE13<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE14<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE14<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE15<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE15<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE2<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE2<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE3<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE3<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE4<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE4<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE5<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE5<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE6<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE6<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE7<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE7<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE8<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE8<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE9<LOCKED, Alternate<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PE9<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<LOCKED, MODE> OutputPin for PEx<LOCKED, Output<MODE>>[src]

type Error = Infallible

impl<T> OutputPin for T where
    T: OutputPin
[src]

Implementation of fallible v2::OutputPin for v1::OutputPin traits

type Error = ()

Loading content...