driver

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Close() error
	SetDebugLevel(level int)
	NewDeviceByVIDPID(VID, PID int) (USBDevice, error)
}

Context defines the behavior required for USBTMC drivers.

type Driver

type Driver interface {
	NewContext() (Context, error)
}

Driver defines the behavior required by types that want to implement a USBTMC driver.

type USBDevice

type USBDevice interface {
	Close() error
	String() string
	Write(p []byte) (n int, err error)
	WriteString(s string) (n int, err error)
	Read(p []byte) (n int, err error)
}

USBDevice defines the behavior for a USB device.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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