RusPiRo Aarch64 API
This crate provides access to ARM Aarch64 system registers as well as specific assembly instructions. The system registers are organized based on the highest exception level they are available.
Usage
To use this crate simply add the dependency to your Cargo.toml
file:
[]
= "0.1.1"
With the dependency maintained in the Cargo.toml file the different defined system registers can be accessed as shown in the following code snipped.
For each available system register a mdule with the registers name is available providing functions to read/write the contents of the register. Those read/write accesses can be either use raw values (u32, u64 - based on register size) or predifined register fields. If a register field is used value contained in the field is properly shifted and masked when written to or read from a register.
use *;
License
Licensed under Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) or MIT (LICENSE-MIT or http://opensource.org/licenses/MIT)) at your choice.