Struct hosp::HospDevice[][src]

pub struct HospDevice<'a> {
    pub timeout_ms: i32,
    // some fields omitted
}

Context object for managing the HID device.

Fields

The read timeout in milliseconds: 0 by default, -1 for blocking reads

Methods

impl<'a> HospDevice<'a>
[src]

Open the ODROID Smart Power

Try to get the version string

Try to get the device status

Toggle the ON/OFF status

Toggle the START/STOP status

Try to get data from the device

Auto Trait Implementations

impl<'a> !Send for HospDevice<'a>

impl<'a> !Sync for HospDevice<'a>