Trait mcp230xx::Map

source ·
pub trait Map: Into<usize> + Copy + Default {
    // Required method
    fn map(self, reg: Register) -> (u8, usize);
}
Expand description

Trait providing a register map of a chip variant

Required Methods§

source

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).

Object Safety§

This trait is not object safe.

Implementors§