system

package
v0.0.0-...-5a0b006 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDevPaths

func FindDevPaths(devicePath string, devPathsMap map[string]string) ([]string, error)

Types

type HIDRawDriver

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

func (*HIDRawDriver) Close

func (h *HIDRawDriver) Close()

func (*HIDRawDriver) Open

func (h *HIDRawDriver) Open(filePath string) error

func (*HIDRawDriver) Read

func (h *HIDRawDriver) Read() ([]byte, error)

func (*HIDRawDriver) Write

func (h *HIDRawDriver) Write(payload []byte) error

type SystemDriver

type SystemDriver interface {
	Open(filePath string) error
	Write(payload []byte) error
	Read() ([]byte, error)
	Close()
}

func GetFileDriver

func GetFileDriver(devPath string) (SystemDriver, error)

Jump to

Keyboard shortcuts

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