docs.rs failed to build vcgencmd-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
vcgencmd-0.3.1
Bindings for RaspberryPi's vcgencmd utility
The vcgencmd
crate provides a way to interact with the vcgencmd utility included in Raspbian in a Rust program.
As of yet, not all vcgencmd commands have a binding. To see which commands are
missing, take a look at PROGRESS.md
in the projects repo. I will only actively
add bindings for commands if I happen to need them personally. If you need a
specific command that's unimplemented, feel free to open an issue asking for it
or submit a pull request with the implementation yourself.
Installation
Install from Crates.io:
[]
= "0.3.*"
Features
- serde: Serialization and deserialization for the few data structures this crate contains are supported via the
serde
feature flag:
[]
= {"0.3.*", features = ["serde"]}
Quick Start
use ;
// You'll want to import the `Src` enum, which holds all available sources
// for the different commands
use Src;
// Gives the current temperature as f64 in °C
let temp = measure_temp.unwrap;
// Measure the arm chips memory usage
let arm_mem = get_mem.unwrap;
// Measure the voltage at the video core
let volt_gpu = measure_volts.unwrap;
// Get a bit pattern which represents the throttled state of the system
let bit_pattern = get_throttle.unwrap;
// Get comprehensive, human readable info about the throttled state of the system
let throttle_status = new;
// If you've enabled the `serde` feature, you can serialize/deserialize the crates datastructures
use to_string;
let serialized = to_string.unwrap;