gohid

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorTooLong = errors.New("Transfer is too long")

Functions

This section is empty.

Types

type HIDDevice

type HIDDevice interface {
	GetFeatureReport(b []byte) (int, error)
	SendFeatureReport(b []byte) (int, error)
	Close() error
}

func OpenHID

func OpenHID(path string) (HIDDevice, error)

type HIDRaw

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

func (*HIDRaw) Close

func (h *HIDRaw) Close() error

func (*HIDRaw) GetFeatureReport

func (h *HIDRaw) GetFeatureReport(b []byte) (int, error)

func (*HIDRaw) SendFeatureReport

func (h *HIDRaw) SendFeatureReport(b []byte) (int, error)

Jump to

Keyboard shortcuts

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