Struct max7301::expander::immediate::ImmediateIO [−][src]
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]
M: IOMutex<Expander<EI>>,
EI: ExpanderInterface + Send,
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]
M: IOMutex<Expander<EI>>,
EI: ExpanderInterface + Send,
Auto Trait Implementations
impl<M, EI> RefUnwindSafe for ImmediateIO<M, EI> where
EI: RefUnwindSafe,
M: RefUnwindSafe,
EI: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, EI> Send for ImmediateIO<M, EI> where
M: Send,
M: Send,
impl<M, EI> Sync for ImmediateIO<M, EI> where
EI: Sync,
M: Sync,
EI: Sync,
M: Sync,
impl<M, EI> Unpin for ImmediateIO<M, EI> where
EI: Unpin,
M: Unpin,
EI: Unpin,
M: Unpin,
impl<M, EI> UnwindSafe for ImmediateIO<M, EI> where
EI: UnwindSafe,
M: UnwindSafe,
EI: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,