#rus-pi-ro #mailbox #raspberrypi #baremetal #propertytag

no-std ruspiro-mailbox

Raspberry Pi mailbox property tag interface API

8 releases (4 breaking)

0.4.1 Sep 9, 2021
0.4.0 Sep 27, 2020
0.3.1 Sep 13, 2020
0.3.0 Jan 23, 2020
0.0.2 Jul 30, 2019

#1591 in Embedded development

Download history 9/week @ 2023-10-14 11/week @ 2023-10-21 22/week @ 2023-10-28 21/week @ 2023-11-04 10/week @ 2023-11-11 9/week @ 2023-11-18 18/week @ 2023-11-25 30/week @ 2023-12-02 8/week @ 2023-12-09 18/week @ 2023-12-16 23/week @ 2023-12-23 5/week @ 2023-12-30 14/week @ 2024-01-06 10/week @ 2024-01-13 24/week @ 2024-01-20 21/week @ 2024-01-27

71 downloads per month
Used in ruspiro-sdk

Apache-2.0

69KB
1K SLoC

RusPiRo - Mailbox Property Tag Interface

This crate implements an abstraction of the mailbox property tag interface available in the Raspberry Pi.

Check the official documentation of those property tags and their purpose.

CI Latest Version Documentation License

Usage

To use the crate just add the following dependency to your Cargo.toml file:

[dependencies]
ruspiro-mailbox = "0.4.1"

Once done the access to the mailbox interface access is available in your rust files like so:

use ruspiro_mailbox::*;

fn demo() {
    let mut mb = Mailbox::new();
    // use the mailbox to retrieve the core clock rate
    if let Ok(core_rate) = mb.get_clockrate(ArmClockId::Core) {
        // here we know the core clock rate do something with it...
        println!("Core clock rate {}", core_rate);
    }
}

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.

Dependencies

~125–275KB