energymon / hosp-rs

Hardkernel ODROID Smart Power Library in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Hardkernel ODROID Smart Power Library in Rust

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 100.0%