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

pub trait ToggleableOutputPin {
    type Error;
    pub 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[src]

Error type

Loading content...

Required methods

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

Toggle pin output.

Loading content...

Implementors

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

type Error = P::Error

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

Toggle pin output

Loading content...