/hosp-rs

Hardkernel ODROID Smart Power Library in Rust

Primary LanguageRustBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Hardkernel ODROID Smart Power - Rust Implementation

This Rust crate provides an interface for managing an ODROID Smart Power device. It is roughly based on the hosp C library.

Dependencies

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).

Usage

Add hosp as a dependency in Cargo.toml:

[dependencies]
hosp = "0.1"

Project Source

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.