Versions in this module Expand all Collapse all v0 v0.0.1 Oct 24, 2023 Changes in this version + func Devices() <-chan *DeviceInfo + func FindDevices(vendor uint16, product uint16) <-chan *DeviceInfo + func FindDevicesByProduct(product string) <-chan *DeviceInfo + func Supported() bool + type Device interface + Close func() + Read func([]byte) (int, error) + ReadFeature func([]byte) (int, error) + Write func([]byte) error + WriteFeature func([]byte) error + type DeviceInfo struct + FeatureReportLength uint16 + InputReportLength uint16 + Manufacturer string + OutputReportLength uint16 + Path string + Product string + ProductID uint16 + SerialNumber string + VendorID uint16 + VersionNumber uint16 + func ByPath(devicePath string) (*DeviceInfo, error) + func ByPath(path string) (*DeviceInfo, error) + func ListAllDevices(cond func(*DeviceInfo) bool) []*DeviceInfo + func ListFirstDevice(cond func(*DeviceInfo) bool) *DeviceInfo + func (di *DeviceInfo) Open() (Device, error)