probe_rs::architecture::arm

Trait Register

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

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.

Implementors§

Source§

impl Register for IDR

Source§

const ADDRESS: u8 = 252u8

Source§

const NAME: &'static str = "IDR"

Source§

impl Register for Abort

Source§

const ADDRESS: u8 = 0u8

Source§

const NAME: &'static str = "ABORT"

Source§

impl Register for BASEPTR0

Source§

const ADDRESS: u8 = 32u8

Source§

const NAME: &'static str = "BASEPTR0"

Source§

impl Register for BASEPTR1

Source§

const ADDRESS: u8 = 48u8

Source§

const NAME: &'static str = "BASEPTR1"

Source§

impl Register for Ctrl

Source§

const ADDRESS: u8 = 4u8

Source§

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

Source§

impl Register for DLPIDR

Source§

const ADDRESS: u8 = 52u8

Source§

const NAME: &'static str = "DLPIDR"

Source§

impl Register for DPIDR1

Source§

const ADDRESS: u8 = 16u8

Source§

const NAME: &'static str = "DPIDR1"

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"