pub trait _embedded_hal_digital_v2_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<MODE> ToggleableOutputPin for AnyPin<Output<MODE>>

source§

impl<MODE, RA, IRA, PINTYPE, SIG, const GPIONUM: u8> ToggleableOutputPin for GpioPin<Output<MODE>, RA, IRA, PINTYPE, SIG, GPIONUM>where RA: BankGpioRegisterAccess, IRA: InteruptStatusRegisterAccess, PINTYPE: IsOutputPin, SIG: GpioSignal,

source§

impl<P> ToggleableOutputPin for Pwhere P: Default,

§

type Error = <P as OutputPin>::Error