[][src]Trait embedded_hal::digital::ToggleableOutputPin

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

Output pin that can be toggled

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 try_toggle(&mut self) -> Result<(), Self::Error>

Toggle pin output.

Loading content...

Implementors

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

type Error = P::Error

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

Toggle pin output

Loading content...