[][src]Crate ruspiro_register

RusPiRo Register

The crate provides the definitions to conviniently work with register field values that are typically presented by a set of bit fields. This crate will likely be used in other crates whichspecifies the actual registers and their structure using macros. Examples are ruspiro-mmio-register and ruspiro-arch-aarch64

Structs

RegisterField

Definition of a field contained inside of a register. Each field is defined by a mask and the bit shift value when constructing the field definition the stored mask is already shifted by the shift value

RegisterFieldValue

Definition of a specific fieldvalue of a regiser. This structure allows to combine field values with bit operators like | and & to build the final value that should be written to a register

Traits

RegisterType

This trait is used to describe the register size/length as type specifier. The trait is only implemented for the internal types u8, u16, u32 and u64 to ensure safe register access sizes with compile time checking