util

package
v0.0.0-...-f4f3293 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Custom errors
	ErrNoDevice    = constError("no TKey connected")
	ErrManyDevices = constError("more than one TKey connected")
)

Variables

This section is empty.

Functions

func DetectSerialPort

func DetectSerialPort(verbose bool) (string, error)

func InputUSS

func InputUSS() ([]byte, error)

func Notify

func Notify(progname, msg string)

func ReadUSS

func ReadUSS(fileUSS string) ([]byte, error)

Types

type SerialPort

type SerialPort struct {
	DevPath      string
	SerialNumber string
}

func GetSerialPorts

func GetSerialPorts() ([]SerialPort, error)

Jump to

Keyboard shortcuts

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