#[repr(usize)]pub enum Mcp23008 {
P0 = 0,
P1 = 1,
P2 = 2,
P3 = 3,
P4 = 4,
P5 = 5,
P6 = 6,
P7 = 7,
}
Expand description
MCP23008 Register mapping See the datasheet for more information on the device.
Variants§
Trait Implementations§
source§impl Map for Mcp23008
impl Map for Mcp23008
source§fn map(self, reg: Register) -> (u8, usize)
fn map(self, reg: Register) -> (u8, usize)
A way to map a named register (
Register
) and pin (from Pin
, depending on the variant)
to a register address and bit index. This may depend on the number of IO banks, the
way the banks are ordered in memory, and even the current configuration (IOCON.BANK
).source§impl PartialEq for Mcp23008
impl PartialEq for Mcp23008
impl Copy for Mcp23008
impl Eq for Mcp23008
impl StructuralPartialEq for Mcp23008
Auto Trait Implementations§
impl Freeze for Mcp23008
impl RefUnwindSafe for Mcp23008
impl Send for Mcp23008
impl Sync for Mcp23008
impl Unpin for Mcp23008
impl UnwindSafe for Mcp23008
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