Versions in this module Expand all Collapse all v1 v1.0.1 Mar 18, 2021 Changes in this version + var ErrDeviceClosed = errors.New("hid: device closed") + var ErrUnsupportedPlatform = errors.New("hid: unsupported platform") + func Supported() bool + type Device struct + func (dev *Device) Close() error + func (dev *Device) GetFeatureReport(b []byte) (int, error) + func (dev *Device) Read(b []byte) (int, error) + func (dev *Device) ReadTimeout(b []byte, timeout int) (int, error) + func (dev *Device) SendFeatureReport(b []byte) (int, error) + func (dev *Device) SetNonBlocking(block bool) (int, error) + func (dev *Device) Write(b []byte) (int, error) + type DeviceInfo struct + Interface int + Manufacturer string + Path string + Product string + ProductID uint16 + Release uint16 + Serial string + Usage uint16 + UsagePage uint16 + VendorID uint16 + func Enumerate(vendorID uint16, productID uint16) []DeviceInfo + func (info DeviceInfo) Open() (*Device, error)