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§

source

const ADDRESS: u8

The address of the register (in bytes).

source

const NAME: &'static str

The name of the register as string.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Register for BASE2

source§

const ADDRESS: u8 = 240u8

source§

const NAME: &'static str = "BASE2"

source§

impl Register for BASE

source§

const ADDRESS: u8 = 248u8

source§

const NAME: &'static str = "BASE"

source§

impl Register for CFG

source§

const ADDRESS: u8 = 244u8

source§

const NAME: &'static str = "CFG"

source§

impl Register for CSW

source§

const ADDRESS: u8 = 0u8

source§

const NAME: &'static str = "CSW"

source§

impl Register for DRW

source§

const ADDRESS: u8 = 12u8

source§

const NAME: &'static str = "DRW"

source§

impl Register for IDR

source§

const ADDRESS: u8 = 252u8

source§

const NAME: &'static str = "IDR"

source§

impl Register for TAR2

source§

const ADDRESS: u8 = 8u8

source§

const NAME: &'static str = "TAR2"

source§

impl Register for TAR

source§

const ADDRESS: u8 = 4u8

source§

const NAME: &'static str = "TAR"

source§

impl Register for Abort

source§

const ADDRESS: u8 = 0u8

source§

const NAME: &'static str = "ABORT"

source§

impl Register for Ctrl

source§

const ADDRESS: u8 = 4u8

source§

const NAME: &'static str = "CTRL/STAT"

source§

impl Register for DPIDR

source§

const ADDRESS: u8 = 0u8

source§

const NAME: &'static str = "DPIDR"

source§

impl Register for RdBuff

source§

const ADDRESS: u8 = 12u8

source§

const NAME: &'static str = "RDBUFF"

source§

impl Register for Select

source§

const ADDRESS: u8 = 8u8

source§

const NAME: &'static str = "SELECT"

source§

impl Register for TARGETID

source§

const ADDRESS: u8 = 36u8

source§

const NAME: &'static str = "TARGETID"