device

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.4

type Config struct {
	DryRun      bool
	Path        string
	ControlCode uint32
}

type Control

type Control struct {
	Config
	// contains filtered or unexported fields
}

func NewControl

func NewControl(conf Config) (*Control, error)

func (*Control) Close

func (d *Control) Close() error

func (*Control) Execute

func (d *Control) Execute(input []byte, outLen int) ([]byte, error)

func (*Control) Read

func (d *Control) Read(outBuf []byte) (int, error)

func (*Control) Write

func (d *Control) Write(input []byte) (int, error)

Jump to

Keyboard shortcuts

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