33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
// Package constants define constant variable
|
|
package constants
|
|
|
|
// DataObjectType identifies the kind of object represented by a data object token.
|
|
type DataObjectType string
|
|
|
|
const (
|
|
// DataObjectTypeParameter represents a component parameter.
|
|
DataObjectTypeParameter DataObjectType = "parameter"
|
|
// DataObjectTypeMeasurement represents a component measurement.
|
|
DataObjectTypeMeasurement DataObjectType = "measurement"
|
|
)
|
|
|
|
const (
|
|
// MeasurementModeManual indicates that manual value entry is enabled.
|
|
MeasurementModeManual int16 = 0
|
|
// MeasurementModeAutomatic indicates that the measurement runs automatically.
|
|
MeasurementModeAutomatic int16 = 1
|
|
)
|
|
|
|
const (
|
|
// MeasurementTypeTelemetry represents TM (遥测).
|
|
MeasurementTypeTelemetry int16 = 0
|
|
// MeasurementTypeTelesignal represents TS (遥信).
|
|
MeasurementTypeTelesignal int16 = 1
|
|
// MeasurementTypeTelecommand represents TC (遥控).
|
|
MeasurementTypeTelecommand int16 = 2
|
|
// MeasurementTypeTeleadjusting represents TA (遥调).
|
|
MeasurementTypeTeleadjusting int16 = 3
|
|
// MeasurementTypeSetpoint represents SP (定值).
|
|
MeasurementTypeSetpoint int16 = 4
|
|
)
|