[][src]Struct orange::gpio::IoPin

#[repr(transparent)]pub struct IoPin(pub u32);

Implementations

impl IoPin[src]

pub fn get_mode(&self) -> PinMode[src]

pub fn set_mode(&self, mode: PinMode)[src]

pub fn read(&self) -> bool[src]

pub fn write(&self, value: bool)[src]

pub fn enable_interrupt(&self, mode: IntrMode)[src]

pub fn disable_interrupt(&self)[src]

pub fn ack_interrupt(&self)[src]

Trait Implementations

impl Clone for IoPin[src]

impl Copy for IoPin[src]

impl Debug for IoPin[src]

impl Eq for IoPin[src]

impl Ord for IoPin[src]

impl PartialEq<IoPin> for IoPin[src]

impl PartialOrd<IoPin> for IoPin[src]

impl StructuralEq for IoPin[src]

impl StructuralPartialEq for IoPin[src]

Auto Trait Implementations

impl Send for IoPin

impl Sync for IoPin

impl Unpin for IoPin

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