Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Monitor ¶
func Monitor(match DeviceConfig) (chan MonitorEvent, error)
Only action=add events for the given match are passed through. All action=remove events are passed through, as they cannot be filtered.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func Find ¶
func Find(config DeviceConfig) (*Device, error)
func Open ¶
func Open(info DeviceInfo) (*Device, error)
func (*Device) ReportDescriptor ¶
USB HID Report Descriptor
This is a magic thing that specifies the format of the reports http://stackoverflow.com/questions/21606991/custom-hid-device-hid-report-descriptor
type DeviceConfig ¶
type DeviceInfo ¶
type DeviceInfo struct { libudev.Device DeviceConfig }
func List ¶
func List(match DeviceConfig) (devices []DeviceInfo, err error)
type MonitorEvent ¶
type MonitorEvent struct { DeviceInfo Action string }
Click to show internal directories.
Click to hide internal directories.