[][src]Struct dart6ul_gpio::OutPin

pub struct OutPin { /* fields omitted */ }

Methods

impl OutPin[src]

pub fn force_new(port: u8, index: u8) -> Result<Self, Error>[src]

Resets the pins by unexporting the pins from userspace through its file interface, to reset its state, then configures a new pin. This should make sure that the pin is usable.

Note: It does not take into account if other applications are using the pins or anything like that.

pub fn new(port: u8, index: u8) -> Result<Self, Error>[src]

Tries to export and configure a new output pin, this can error out due to the pin already configured, usually with a device or resource busy

Trait Implementations

impl Drop for OutPin[src]

impl OutputPin for OutPin[src]

type Error = Error

Error type

Auto Trait Implementations

impl RefUnwindSafe for OutPin

impl Send for OutPin

impl Sync for OutPin

impl Unpin for OutPin

impl UnwindSafe for OutPin

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