This Rust crate provides an interface for managing an ODROID Smart Power device. It is roughly based on the hosp C library.
You need an ODROID Smart Power device with a USB connection.
We use the hidapi crate for managing the USB interface.
On Linux, you will need libusb-1.0
headers installed and discoverable by pkg-config
so the native hidapi library can be compiled (On Ubuntu, install libusb-1.0-0-dev
).
Add hosp
as a dependency in Cargo.toml
:
[dependencies]
hosp = "0.1"
Find this and related project sources at the energymon organization on GitHub.
This project originates at: https://github.com/energymon/hosp-rs
Bug reports and pull requests for bug fixes and enhancements are welcome.