pub trait Register: Clone + TryFrom<u32, Error = RegisterParseError> + Into<u32> + Sized + Debug {
    const ADDRESS: u8;
    const NAME: &'static str;
}
Expand description

A trait to be implemented on register types for typed device access.

Required Associated Constants§

The address of the register (in bytes).

The name of the register as string.

Implementors§