[][src]Struct mynewt::GPIO

pub struct GPIO { /* fields omitted */ }

Rust Embedded HAL interface for Mynewt GPIO

Implementations

impl GPIO[src]

Rust Embedded HAL interface for Mynewt GPIO

pub fn new() -> Self[src]

Create a new output GPIO pin

pub fn init(&mut self, pin: i32) -> MynewtResult<()>[src]

Initialise the output GPIO pin

Trait Implementations

impl OutputPin for GPIO[src]

Rust Embedded HAL interface for Mynewt GPIO

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

Set the GPIO pin to low

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

Set the GPIO pin to high

type Error = MynewtError

Reuse Mynewt error codes

Auto Trait Implementations

impl Send for GPIO

impl Sync for GPIO

impl Unpin for GPIO

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Error = ()

Error type

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.