[][src]Trait e310x_hal::prelude::_embedded_hal_digital_v2_ToggleableOutputPin

pub trait _embedded_hal_digital_v2_ToggleableOutputPin {
    type Error;
    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

Error type

Loading content...

Required methods

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

Toggle pin output.

Loading content...

Implementors

impl<MODE> ToggleableOutputPin for Pin0<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin1<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin10<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin11<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin12<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin13<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin14<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin15<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin16<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin17<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin18<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin19<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin2<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin20<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin21<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin22<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin23<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin24<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin25<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin26<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin27<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin28<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin29<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin3<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin30<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin31<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin4<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin5<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin6<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin7<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin8<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

impl<MODE> ToggleableOutputPin for Pin9<Output<MODE>>[src]

type Error = Infallible

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

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

type Error = <P as OutputPin>::Error

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

Toggle pin output

Loading content...