Trait _embedded_hal_digital_ToggleableOutputPin

Source
pub trait _embedded_hal_digital_ToggleableOutputPin {
    type Error;

    // Required method
    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.

Required Associated Types§

Source

type Error

Error type

Required Methods§

Source

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

Toggle pin output.

Implementors§

Source§

impl<P> ToggleableOutputPin for P
where P: Default,

Source§

impl<const P: char, MODE> ToggleableOutputPin for PartiallyErasedPin<P, Output<MODE>>

Source§

impl<const P: char, const N: u8, MODE> ToggleableOutputPin for Pin<P, N, Output<MODE>>