Trait thingy_91_nrf9160_bsp::prelude::ToggleableOutputPin[]

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

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

Required methods

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

Toggle pin output.

Implementors

impl<P> ToggleableOutputPin for P where
    P: Default

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

Toggle pin output

type Error = <P as OutputPin>::Error