Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceEvent ¶ added in v0.3.0
type DeviceEvent struct {
Type DeviceEventType
DeviceInfo *DeviceInfo
Err error
}
type DeviceEventType ¶ added in v0.3.0
type DeviceEventType string
const ( DeviceEventConnected DeviceEventType = "connected" DeviceEventDisconnected DeviceEventType = "disconnected" )
type DeviceInfo ¶
type DeviceInfo struct {
Path string // Platform-Specific Device Path
VendorID uint16 // Device Vendor ID
ProductID uint16 // Device Product ID
SerialNbr string // Serial Number
ReleaseNbr uint16 // Device Version Number
MfrStr string // Manufacturer String
ProductStr string // Product String
UsagePage uint16 // Usage Page for Device/Interface
Usage uint16 // Usage for Device/Interface
InterfaceNbr int // USB Interface Number
InstanceID string
ParentDeviceID string
}
type EventReceiver ¶ added in v0.3.0
type EventReceiver interface {
Listen() <-chan DeviceEvent
Close() error
}
Click to show internal directories.
Click to hide internal directories.