Versions in this module Expand all Collapse all v1 v1.0.1 Jun 28, 2018 Changes in this version + const ProductSafeTminiBootloader + const ProductSafeTminiFirmware + const ProductT1Firmware + const ProductT2Bootloader + const ProductT2Firmware + const VendorArchos + const VendorT1 + const VendorT2 + var ErrNotFound = fmt.Errorf("device not found") + type Bus interface + Connect func(path string) (Device, error) + Enumerate func() ([]Info, error) + Has func(path string) bool + type Device interface + type HID struct + func (d *HID) Close() error + func (d *HID) Read(buf []byte) (int, error) + func (d *HID) Write(buf []byte) (int, error) + type HIDAPI struct + func InitHIDAPI(logger, dlogger *log.Logger) (*HIDAPI, error) + func (b *HIDAPI) Connect(path string) (Device, error) + func (b *HIDAPI) Enumerate() ([]Info, error) + func (b *HIDAPI) Has(path string) bool + type Info struct + Path string + ProductID int + VendorID int + type UDP struct + func InitUDP(ports []int) (*UDP, error) + func (u *UDP) Connect(path string) (Device, error) + func (u *UDP) Enumerate() ([]Info, error) + func (u *UDP) Has(path string) bool + type UDPDevice struct + func (d *UDPDevice) Close() error + func (d *UDPDevice) Read(buf []byte) (int, error) + func (d *UDPDevice) Write(buf []byte) (int, error) + type USB struct + func Init(buses ...Bus) *USB + func (b *USB) Connect(path string) (Device, error) + func (b *USB) Enumerate() ([]Info, error) + type WUD struct + func (d *WUD) Close() error + func (d *WUD) Read(buf []byte) (int, error) + func (d *WUD) Write(buf []byte) (int, error) + type WebUSB struct + func InitWebUSB(logger, dlogger *log.Logger) (*WebUSB, error) + func (b *WebUSB) Close() + func (b *WebUSB) Connect(path string) (Device, error) + func (b *WebUSB) Enumerate() ([]Info, error) + func (b *WebUSB) Has(path string) bool