pub trait _embedded_hal_digital_v2_OutputPin {
    type Error;

    // Required methods
    fn set_low(&mut self) -> Result<(), Self::Error>;
    fn set_high(&mut self) -> Result<(), Self::Error>;

    // Provided method
    fn set_state(&mut self, state: PinState) -> Result<(), Self::Error> { ... }
}
Expand description

Single digital push-pull output pin

Required Associated Types§

source

type Error

Error type

Required Methods§

source

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

source

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

Provided Methods§

source

fn set_state(&mut self, state: PinState) -> Result<(), Self::Error>

Drives the pin high or low depending on the provided value

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

Implementors§

source§

impl<MODE> OutputPin for Pin0<Output<MODE>>

source§

impl<MODE> OutputPin for Pin1<Output<MODE>>

source§

impl<MODE> OutputPin for Pin2<Output<MODE>>

source§

impl<MODE> OutputPin for Pin3<Output<MODE>>

source§

impl<MODE> OutputPin for Pin4<Output<MODE>>

source§

impl<MODE> OutputPin for Pin5<Output<MODE>>

source§

impl<MODE> OutputPin for Pin6<Output<MODE>>

source§

impl<MODE> OutputPin for Pin7<Output<MODE>>

source§

impl<MODE> OutputPin for Pin8<Output<MODE>>

source§

impl<MODE> OutputPin for Pin9<Output<MODE>>

source§

impl<MODE> OutputPin for Pin10<Output<MODE>>

source§

impl<MODE> OutputPin for Pin11<Output<MODE>>

source§

impl<MODE> OutputPin for Pin12<Output<MODE>>

source§

impl<MODE> OutputPin for Pin13<Output<MODE>>

source§

impl<MODE> OutputPin for Pin14<Output<MODE>>

source§

impl<MODE> OutputPin for Pin15<Output<MODE>>

source§

impl<MODE> OutputPin for Pin16<Output<MODE>>

source§

impl<MODE> OutputPin for Pin17<Output<MODE>>

source§

impl<MODE> OutputPin for Pin18<Output<MODE>>

source§

impl<MODE> OutputPin for Pin19<Output<MODE>>

source§

impl<MODE> OutputPin for Pin20<Output<MODE>>

source§

impl<MODE> OutputPin for Pin21<Output<MODE>>

source§

impl<MODE> OutputPin for Pin22<Output<MODE>>

source§

impl<MODE> OutputPin for Pin23<Output<MODE>>

source§

impl<MODE> OutputPin for Pin24<Output<MODE>>

source§

impl<MODE> OutputPin for Pin25<Output<MODE>>

source§

impl<MODE> OutputPin for Pin26<Output<MODE>>

source§

impl<MODE> OutputPin for Pin27<Output<MODE>>

source§

impl<MODE> OutputPin for Pin28<Output<MODE>>

source§

impl<MODE> OutputPin for Pin29<Output<MODE>>

source§

impl<MODE> OutputPin for Pin30<Output<MODE>>

source§

impl<MODE> OutputPin for Pin31<Output<MODE>>

source§

impl<T> OutputPin for Twhere T: OutputPin,

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

§

type Error = ()