native

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HIDDevice

type HIDDevice interface {
	Vendor() uint16
	Product() uint16
	Open() (HIDDeviceHandle, error)
}

type HIDDeviceHandle

type HIDDeviceHandle interface {
	GetFeatureReport(id byte) ([]byte, error)
	SetFeatureReport(payload []byte) error

	Read(timeout time.Duration) ([]byte, error)
	Write(packet []byte, timeout time.Duration) error

	Close() error
}

type HIDEnumerator

type HIDEnumerator interface {
	Enumerate(vendorFilter uint16, productFilter uint16) ([]HIDDevice, error)
}

func NativeHIDEnumerator

func NativeHIDEnumerator() HIDEnumerator

Jump to

Keyboard shortcuts

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