usb

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenUSB

func OpenUSB(address string) (io.ReadWriteCloser, error)

OpenUSB open usb connection to device. if address is empty string, it will find pre defined device id. address should formatted like "20af" or empty string.

Types

type USBSerial

type USBSerial struct {
	// contains filtered or unexported fields
}

func (USBSerial) Close

func (s USBSerial) Close() error

func (USBSerial) Read

func (s USBSerial) Read(b []byte) (int, error)

func (USBSerial) Write

func (s USBSerial) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL