[][src]Trait lpc8xx_hal::prelude::OutputPin

pub trait OutputPin {
    type Error;
    fn set_low(&mut self) -> Result<(), Self::Error>;
fn set_high(&mut self) -> Result<(), Self::Error>; }

Single digital push-pull output pin

Associated Types

type Error

Error type

Loading content...

Required methods

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

Drives the pin low

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

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

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...

Implementors

impl<'gpio, T> OutputPin for Pin<T, Gpio<'gpio, Output>> where
    T: PinTrait
[src]

type Error = Void

fn set_high(&mut self) -> Result<(), Self::Error>[src]

Set the pin output to HIGH

This method is only available, if two conditions are met:

Unless both of these conditions are met, code trying to call this method will not compile.

fn set_low(&mut self) -> Result<(), Self::Error>[src]

Set the pin output to LOW

This method is only available, if two conditions are met:

Unless both of these conditions are met, code trying to call this method will not compile.

impl<T> OutputPin for T where
    T: OutputPin
[src]

Implementation of fallible v2::OutputPin for v1::OutputPin traits

type Error = ()

Loading content...