[−][src]Trait trellis_m4::prelude::_atsamd_hal_embedded_hal_digital_v2_OutputPin
Single digital push-pull output pin
Associated Types
Loading content...Required methods
pub fn set_low(&mut self) -> Result<(), Self::Error>
[src]
Drives the pin low
NOTE the actual electrical state of the pin may not actually be low, e.g. due to external electrical sources
pub fn set_high(&mut self) -> Result<(), Self::Error>
[src]
Drives the pin high
NOTE the actual electrical state of the pin may not actually be high, e.g. due to external electrical sources
Implementors
impl OutputPin for DynPin
[src]
type Error = Error
pub fn set_high(&mut self) -> Result<(), <DynPin as OutputPin>::Error>
[src]
pub fn set_low(&mut self) -> Result<(), <DynPin as OutputPin>::Error>
[src]
impl<I, C> OutputPin for trellis_m4::gpio::v2::Pin<I, Output<C>> where
C: OutputConfig,
I: PinId,
[src]
C: OutputConfig,
I: PinId,
type Error = Infallible
pub fn set_high(
&mut self
) -> Result<(), <Pin<I, Output<C>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <Pin<I, Output<C>> as OutputPin>::Error>
pub fn set_low(&mut self) -> Result<(), <Pin<I, Output<C>> as OutputPin>::Error>
[src]
impl<I, M> OutputPin for trellis_m4::gpio::Pin<I, Output<M>> where
M: OutputConfig,
I: PinId,
[src]
M: OutputConfig,
I: PinId,
type Error = ()
pub fn set_high(
&mut self
) -> Result<(), <Pin<I, Output<M>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <Pin<I, Output<M>> as OutputPin>::Error>
pub fn set_low(&mut self) -> Result<(), <Pin<I, Output<M>> as OutputPin>::Error>
[src]
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
Implementation of fallible v2::OutputPin
for v1::OutputPin
traits