This crate provides an API for managing an ODROID Smart Power over USB.
This crate is on crates.io and can be
used by adding
hosp to the dependencies in your project's
[dependencies] hosp = "0.1"
Getter functions return
Result errors when I/O fails.
Assuming no I/O errors, an
Option type is returned from getter functions.
None is a normal return value when the device replies to a read request
without providing any real data.
Users implement their own retry policy waiting for a
Some return value.
ODROID Smart Power devices normally refresh at 10 Hz.
A module for utility functions and data.
Object for handling hidapi context and implementing RAII for it. Only one instance can exist at a time.
ODROID Smart Power device data. Optional fields are not available when the device is OFF.
Context object for managing the HID device.
ODROID Smart Power device status info.