Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context models libusb context and implements the driver.Context interface.
func (*Context) NewDeviceByVIDPID ¶
NewDeviceByVIDPID creates new USB device based on the given the vendor ID and product ID. If multiple USB devices matching the VID and PID are found, only the first is returned.
func (*Context) SetDebugLevel ¶
SetDebugLevel sets the debug level for the libusb session/context
type Device ¶
type Device struct { BulkInEndpoint *gousb.InEndpoint BulkOutEndpoint *gousb.OutEndpoint InterruptInEndpoint *gousb.InEndpoint // contains filtered or unexported fields }
Device represents a USB device not a USBMTC device.
Click to show internal directories.
Click to hide internal directories.