monitor

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumerateMonitorPortSettings

EnumerateMonitorPortSettings returns a description of the configuration settings of a monitor port

Types

type PortProxy

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

PortProxy is an io.ReadWriteCloser that maps into the monitor port of the board

func Monitor

Monitor opens a communication port. It returns a PortProxy to communicate with the port and a PortDescriptor that describes the available configuration settings.

func (*PortProxy) Close

func (p *PortProxy) Close() error

Close the port

func (*PortProxy) Config

func (p *PortProxy) Config(setting, value string) error

Config sets the port configuration setting to the specified value

func (*PortProxy) Read

func (p *PortProxy) Read(buff []byte) (int, error)

func (*PortProxy) Write

func (p *PortProxy) Write(buff []byte) (int, error)

Jump to

Keyboard shortcuts

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