Trait stm32f407g_disc::hal::digital::v2::OutputPin[][src]

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

Single digital push-pull output pin

Associated Types

type Error[src]

Error type

Loading content...

Required methods

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

Drives the pin low

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

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

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<MODE> OutputPin for PA0<Output<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

impl<MODE> OutputPin for PI<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...