[][src]Trait bl602_hal::prelude::_embedded_hal_digital_ToggleableOutputPin

pub trait _embedded_hal_digital_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 as OutputPin>::Error

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

Toggle pin output

Loading content...