dfu

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func Connect

func Connect(vendor, product usb.ID, busAddr string, poolSpeed uint) (conn *Conn, err error)

Connect connects to the USB device in the DFU mode. You can connect to the concrete device on the USB bus by providing BUS:DEV string where both BUS and DEV are decimal unsigned integers. If busAddr is empty connect will try to find a DFU device on the bus (it will return an error if there are more than one such devices).

func (*Conn) Close

func (c *Conn) Close() (err error)

func (*Conn) Download

func (c *Conn) Download(blockNum uint16, p []byte) (err error)

type Error

type Error struct {
	Op  string
	Err error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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