Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { // ClaimInterfaces will claim the serial interfaces on call to Open ClaimInterfaces bool // ClaimAll will claim the entire usb device ClaimAll bool Logger Logger // contains filtered or unexported fields }
Device represents a USB serial device
func (*Device) Interface ¶
Interface opens one of the interaces on the device usbInterfaceNum is the index of the usb interface to open (same as reported by lsusb for instance)
func (*Device) Interfaces ¶
Interfaces opens all of the detected serial looking interfaces of the device
type Logger ¶
type Logger interface {
Printf(format string, part ...interface{})
}
Logger describes interface used for logging
Click to show internal directories.
Click to hide internal directories.