[][src]Trait atsame54_xpro::prelude::_atsamd_hal_embedded_hal_digital_v2_ToggleableOutputPin

pub trait _atsamd_hal_embedded_hal_digital_v2_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 ToggleableOutputPin for DynPin[src]

type Error = Error

impl<I, C> ToggleableOutputPin for atsame54_xpro::gpio::v2::Pin<I, Output<C>> where
    C: OutputConfig,
    I: PinId
[src]

type Error = Infallible

impl<I, M> ToggleableOutputPin for atsame54_xpro::gpio::Pin<I, Output<M>> where
    M: OutputConfig,
    I: PinId
[src]

type Error = ()

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

type Error = <P as OutputPin>::Error

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

Toggle pin output

Loading content...