[][src]Trait gd32vf103_hal::prelude::_embedded_hal_digital_v2_ToggleableOutputPin

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

Output pin that can be toggled

This trait is available if embedded-hal is built with the "unproven" feature.

See toggleable to use a software implementation if both OutputPin and StatefulOutputPin are implemented. Otherwise, implement this using hardware mechanisms.

Associated Types

type Error

Error type

Loading content...

Required methods

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

Toggle pin output.

Loading content...

Implementors

impl<MODE> ToggleableOutputPin for PA0<Alternate<MODE>>[src]

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA0<Output<MODE>>[src]

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA1<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA10<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA11<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA12<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA13<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA14<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA15<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA2<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA3<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA4<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA5<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA6<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA7<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA8<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PA9<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PAx<Output<MODE>>[src]

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB0<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB1<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB10<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB11<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB12<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB13<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB14<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB15<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB2<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB3<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB4<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB5<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB6<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB7<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB8<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PB9<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PBx<Output<MODE>>[src]

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC0<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC1<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC10<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC11<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC12<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC13<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC14<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC15<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC2<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC3<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC4<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC5<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC6<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC7<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC8<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PC9<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PCx<Output<MODE>>[src]

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD0<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD1<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD10<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD11<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD12<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD13<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD14<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD15<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD2<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD3<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD4<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD5<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD6<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD7<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD8<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PD9<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PDx<Output<MODE>>[src]

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE0<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE1<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE10<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE11<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE12<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE13<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE14<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE15<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE2<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE3<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE4<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE5<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE6<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE7<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE8<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PE9<Alternate<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

impl<MODE> ToggleableOutputPin for PEx<Output<MODE>>[src]

type Error = Infallible

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

type Error = <P as OutputPin>::Error

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

Toggle pin output

impl<T> ToggleableOutputPin for Locked<T> where
    T: ToggleableOutputPin
[src]

type Error = T::Error

Loading content...