Struct port_expander::dev::mcp23x17::Mcp23x17
source · pub struct Mcp23x17<M>(/* private fields */);
Expand description
MCP23x17
“16-Bit I/O Expander with Serial Interface” with I2C or SPI interface
Implementations§
source§impl<I2C> Mcp23x17<RefCell<Driver<Mcp23017Bus<I2C>>>>where
I2C: I2cBus,
impl<I2C> Mcp23x17<RefCell<Driver<Mcp23017Bus<I2C>>>>where
I2C: I2cBus,
sourcepub fn new_mcp23017(bus: I2C, a0: bool, a1: bool, a2: bool) -> Self
pub fn new_mcp23017(bus: I2C, a0: bool, a1: bool, a2: bool) -> Self
Create a new instance of the MCP23017 with I2C interface
source§impl<SPI> Mcp23x17<RefCell<Driver<Mcp23S17Bus<SPI>>>>where
SPI: SpiBus,
impl<SPI> Mcp23x17<RefCell<Driver<Mcp23S17Bus<SPI>>>>where
SPI: SpiBus,
sourcepub fn new_mcp23s17(bus: SPI) -> Self
pub fn new_mcp23s17(bus: SPI) -> Self
Create a new instance of the MCP23S17 with SPI interface
Auto Trait Implementations§
impl<M> Freeze for Mcp23x17<M>where
M: Freeze,
impl<M> RefUnwindSafe for Mcp23x17<M>where
M: RefUnwindSafe,
impl<M> Send for Mcp23x17<M>where
M: Send,
impl<M> Sync for Mcp23x17<M>where
M: Sync,
impl<M> Unpin for Mcp23x17<M>where
M: Unpin,
impl<M> UnwindSafe for Mcp23x17<M>where
M: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more