[][src]Struct deoxy::Pin

pub struct Pin { /* fields omitted */ }

Represents a GPIO pin.

Methods

impl Pin[src]

pub fn try_new(number: u16) -> Result<Self, Error>[src]

Attempts to create an output Pin struct on the given pin number.

pub fn set(&mut self, high: bool)[src]

Sets the pin to the desired state.

pub fn set_high(&mut self)[src]

Sets the pin high.

pub fn set_low(&mut self)[src]

Sets the pin low.

Trait Implementations

impl Pwm for Pin[src]

impl Out for Pin[src]

fn set(&mut self, value: bool)[src]

Sets the output device high/low.

impl Debug for Pin[src]

Auto Trait Implementations

impl Send for Pin

impl !Sync for Pin

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self