Versions in this module Expand all Collapse all v1 v1.2.0 Jun 30, 2019 Changes in this version type Device + func (dev *Device) ReadTimeout(b []byte, timeout int) (int, error) v1.1.0 Jun 29, 2019 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) Read(b []byte) (int, error) + func (dev *Device) ReadFeature(reportId byte, length int) ([]byte, error) + func (dev *Device) Write(b []byte) (int, error) + func (dev *Device) WriteFeature(data []byte) 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)