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§
Sourcefn 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
).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.