com

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package com provides information about communication ports (Ethernet, serial, etc.) for various IVI devices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFrame added in v0.6.1

type DataFrame struct {
	DataBits int
	Parity   Parity
	StopBits int
}

DataFrame models an RS-232 data frame format.

type EquipClass added in v0.6.1

type EquipClass int

EquipClass defines whether the device is a DCE (Data Circuit-Terminating Equipment) or a DTE (Data Terminal Equipment). Note, the computer running the IVI software is a DTE. DTE-DTE and DCE-DCE connections require a null modem cable.

const (
	DCE EquipClass = iota
	DTE
)

Enum of available equipment classes.

type Parity

type Parity int

Parity defines the serial port parity setting.

const (
	NoParity Parity = iota
	OddParity
	EvenParity
)

Enum of available parity modes.

type SerialModes

type SerialModes struct {
	Equipment  EquipClass
	BaudRates  []int
	DataFrames []DataFrame
}

SerialModes returns the allowed serial communication modes for a device.

Jump to

Keyboard shortcuts

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