Expand description
This crate provides an API for managing an ODROID Smart Power over USB.
§Usage
This crate is on crates.io and can be
used by adding hosp to the dependencies in your project’s Cargo.toml.
[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.
Modules§
- util
- A module for utility functions and data.
Structs§
- HidApi
- Object for handling hidapi context and implementing RAII for it. Only one instance can exist at a time.
- Hosp
Data - ODROID Smart Power device data. Optional fields are not available when the device is OFF.
- Hosp
Device - Context object for managing the HID device.
- Hosp
Status - ODROID Smart Power device status info.