Struct port_expander::dev::pcf8574::Pcf8574a[][src]

pub struct Pcf8574a<M>(_);

PCF8574A “Remote 8-bit I/O expander for I2C-bus with interrupt”

Implementations

impl<I2C> Pcf8574a<NullMutex<Driver<I2C>>> where
    I2C: I2cBus
[src]

pub fn new(i2c: I2C, a0: bool, a1: bool, a2: bool) -> Self[src]

impl<I2C, M> Pcf8574a<M> where
    I2C: I2cBus,
    M: BusMutex<Bus = Driver<I2C>>, 
[src]

pub fn with_mutex(i2c: I2C, a0: bool, a1: bool, a2: bool) -> Self[src]

pub fn split<'a>(&'a mut self) -> Parts<'a, I2C, M>[src]

Auto Trait Implementations

impl<M> Send for Pcf8574a<M> where
    M: Send

impl<M> Sync for Pcf8574a<M> where
    M: Sync

impl<M> Unpin for Pcf8574a<M> where
    M: Unpin

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.