Trait drv8825::embedded_hal::prelude::_embedded_hal_digital_OutputPin[][src]

pub trait _embedded_hal_digital_OutputPin {
    type Error;
    pub fn try_set_low(&mut self) -> Result<(), Self::Error>;
pub fn try_set_high(&mut self) -> Result<(), Self::Error>; pub fn try_set_state(&mut self, state: PinState) -> Result<(), Self::Error> { ... } }

Single digital push-pull output pin

Associated Types

type Error[src]

Error type

Loading content...

Required methods

pub fn try_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 try_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

Loading content...

Provided methods

pub fn try_set_state(&mut self, state: PinState) -> Result<(), Self::Error>[src]

Drives the pin high or low depending on the provided value

NOTE the actual electrical state of the pin may not actually be high or low, e.g. due to external electrical sources

Loading content...

Implementors

Loading content...