Struct hidapi::HidApi [] [src]

pub struct HidApi { /* fields omitted */ }

Object for handling hidapi context and implementing RAII for it. Only one instance can exist at a time.

Methods

impl HidApi
[src]

Initializes the HID

Refresh devices list and information about them (to access them use devices() method)

Returns list of objects containing information about connected devices

Open a HID device using a Vendor ID (VID) and Product ID (PID)

Open a HID device using a Vendor ID (VID), Product ID (PID) and a serial number.

The path name be determined by calling hid_enumerate(), or a platform-specific path name can be used (eg: /dev/hidraw0 on Linux).

Trait Implementations

impl Drop for HidApi
[src]

A method called when the value goes out of scope. Read more