Struct max7301::expander::pin::PortPin [−][src]
A single I/O pin on the MAX7301. These implement the embedded-hal
traits for GPIO pins, so
they can be used to transparently connect devices driven over GPIOs through the MAX7301
instead, using their embedded-hal
-compatible drivers without modification.
Trait Implementations
impl<'io, IO: ExpanderIO> InputPin for PortPin<'io, IO>
[src]
impl<'io, IO: ExpanderIO> OutputPin for PortPin<'io, IO>
[src]
Auto Trait Implementations
impl<'io, IO> RefUnwindSafe for PortPin<'io, IO> where
IO: RefUnwindSafe,
IO: RefUnwindSafe,
impl<'io, IO> Send for PortPin<'io, IO> where
IO: Sync,
IO: Sync,
impl<'io, IO> Sync for PortPin<'io, IO> where
IO: Sync,
IO: Sync,
impl<'io, IO> Unpin for PortPin<'io, IO>
impl<'io, IO> UnwindSafe for PortPin<'io, IO> where
IO: RefUnwindSafe,
IO: RefUnwindSafe,
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> InputPin for T where
T: InputPin,
[src]
T: InputPin,
type Error = ()
Error type
pub fn is_low(&self) -> Result<bool, <T as InputPin>::Error>
[src]
pub fn is_high(&self) -> Result<bool, <T as InputPin>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
pub fn set_low(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
pub fn set_high(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
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>,