[−][src]Trait atsame54_xpro::prelude::_atsamd_hal_embedded_hal_digital_v2_ToggleableOutputPin
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
Loading content...Required methods
Loading content...Implementors
impl ToggleableOutputPin for DynPin
[src]
type Error = Error
pub fn toggle(&mut self) -> Result<(), <DynPin as ToggleableOutputPin>::Error>
[src]
impl<I, C> ToggleableOutputPin for atsame54_xpro::gpio::v2::Pin<I, Output<C>> where
C: OutputConfig,
I: PinId,
[src]
C: OutputConfig,
I: PinId,
type Error = Infallible
pub fn toggle(
&mut self
) -> Result<(), <Pin<I, Output<C>> as ToggleableOutputPin>::Error>
[src]
&mut self
) -> Result<(), <Pin<I, Output<C>> as ToggleableOutputPin>::Error>
impl<I, M> ToggleableOutputPin for atsame54_xpro::gpio::Pin<I, Output<M>> where
M: OutputConfig,
I: PinId,
[src]
M: OutputConfig,
I: PinId,
type Error = ()
pub fn toggle(
&mut self
) -> Result<(), <Pin<I, Output<M>> as ToggleableOutputPin>::Error>
[src]
&mut self
) -> Result<(), <Pin<I, Output<M>> as ToggleableOutputPin>::Error>
impl<P> ToggleableOutputPin for P where
P: Default,
[src]
P: Default,