usb

package
v0.0.0-...-73894d3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_POLL     = 0x02
	CMD_SYSTEMS  = 0x04
	CMD_SERVICES = 0x06
	CMD_BLOCKS   = 0x08

	STATUS_OK       = 0x00
	STATUS_CONTINUE = 0x01
)
View Source
const PID = 0x0486
View Source
const VID = 0x16C0

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

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

func Init

func Init() (*Endpoints, releaseFunc, error)

func (*Endpoints) Blocks

func (e *Endpoints) Blocks(service int) (int, []uint8, error)

func (*Endpoints) Poll

func (e *Endpoints) Poll() ([]uint8, error)

func (*Endpoints) Services

func (e *Endpoints) Services(system int) ([]uint16, error)

func (*Endpoints) Systems

func (e *Endpoints) Systems() ([]uint16, error)

Jump to

Keyboard shortcuts

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