Documentation ¶
Index ¶
- func Clean(usb *gousb.Device) error
- func ClearStatus(usb *gousb.Device) error
- func ReceiveChunk(usb *gousb.Device, l int, blockno uint16) ([]byte, error)
- func SendChunk(usb *gousb.Device, c []byte, blockno uint16) error
- func SendImage(usb *gousb.Device, i []byte, version ProtoVersion) error
- type Err
- type ProtoVersion
- type Request
- type State
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearStatus ¶
Types ¶
type Err ¶
type Err uint8
const ( ErrOk Err = 0x00 ErrTarget Err = 0x01 ErrFile Err = 0x02 ErrWrite Err = 0x03 ErrErase Err = 0x04 ErrCheckErased Err = 0x05 ErrProg Err = 0x06 ErrVerify Err = 0x07 ErrAddress Err = 0x08 ErrNotDone Err = 0x09 ErrFirmware Err = 0x0a ErrVendor Err = 0x0b ErrUsbr Err = 0x0c ErrPor Err = 0x0d ErrUnknown Err = 0x0e ErrStalledPkt Err = 0x0f )
type ProtoVersion ¶
type ProtoVersion int
const ( // ProtoVersion1 is implemented by Nano3G. ProtoVersion1 ProtoVersion = 1 // ProtoVersion2 is implemented by Nano4G+. ProtoVersion2 ProtoVersion = 2 )
Click to show internal directories.
Click to hide internal directories.