Struct max7301::expander::immediate::ImmediateIO[][src]

pub struct ImmediateIO<M, EI>(_, _)
where
    M: IOMutex<Expander<EI>>,
    EI: ExpanderInterface + Send
;

This I/O adapter captures the Expander and provides a factory for generating GPIO pins that implement InputPin and OutputPin traits. Each such pin will immediately issue a bus transaction to get or set the value every time any pin is accessed.

Implementations

impl<M, EI> ImmediateIO<M, EI> where
    M: IOMutex<Expander<EI>>,
    EI: ExpanderInterface + Send
[src]

pub fn port_pin<'io>(&'io self, port: u8) -> PortPin<'io, Self>[src]

Create a PortPin corresponding to one of the ports on the MAX7301. The returned PortPin implements InputPin and OutputPin, and using any of the methods from these traits on the returned PortPin will trigger a bus transaction to immediately read or write the value of that I/O port.

Trait Implementations

impl<M, EI> ExpanderIO for ImmediateIO<M, EI> where
    M: IOMutex<Expander<EI>>,
    EI: ExpanderInterface + Send
[src]

Auto Trait Implementations

impl<M, EI> RefUnwindSafe for ImmediateIO<M, EI> where
    EI: RefUnwindSafe,
    M: RefUnwindSafe

impl<M, EI> Send for ImmediateIO<M, EI> where
    M: Send

impl<M, EI> Sync for ImmediateIO<M, EI> where
    EI: Sync,
    M: Sync

impl<M, EI> Unpin for ImmediateIO<M, EI> where
    EI: Unpin,
    M: Unpin

impl<M, EI> UnwindSafe for ImmediateIO<M, EI> where
    EI: UnwindSafe,
    M: UnwindSafe

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.