Skip to main content

SystemRegisterSpec

Trait SystemRegisterSpec 

Source
pub trait SystemRegisterSpec {
    type Access: Accessible;

    const OP0: u8;
    const OP1: u8;
    const CRN: u8;
    const CRM: u8;
    const OP2: u8;
    const VALID: () = _;
}
Expand description

Marker for an arm64 system register, expressing its encoding and access permissons.

Required Associated Constants§

Source

const OP0: u8

The register encoding’s op0 parameter.

Source

const OP1: u8

The register encoding’s op1 parameter.

Source

const CRN: u8

The register encoding’s CRn parameter.

Source

const CRM: u8

The register encoding’s CRm parameter.

Source

const OP2: u8

The register encoding’s op2 parameter.

Provided Associated Constants§

Source

const VALID: () = _

Whether the encoding is valid.

Required Associated Types§

Source

type Access: Accessible

The register’s access permissions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access: Accessible> SystemRegisterSpec for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>

Source§

const OP0: u8 = OP0

Source§

const OP1: u8 = OP1

Source§

const CRN: u8 = CRN

Source§

const CRM: u8 = CRM

Source§

const OP2: u8 = OP2

Source§

type Access = Access