mesgdef

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(path string, lookup *lookup.Lookup, message []parser.Message, types []parser.Type) builder.Builder

Types

type CondValue added in v0.16.0

type CondValue struct {
	Conds       []string
	ReturnValue ReturnValue
}

type Data

type Data struct {
	Package           string
	Imports           []string
	Name              string
	Fields            []Field
	OptimizedFields   []Field
	DynamicFields     []DynamicField
	MaxFieldNum       byte
	MaxFieldExpandNum byte
}

type DynamicField added in v0.16.0

type DynamicField struct {
	Name        string
	SwitchCases []SwitchCase
	Default     ReturnValue
}

type Field

type Field struct {
	Num             byte
	Name            string
	String          string
	ProfileType     string
	BaseType        string
	Size            byte
	Type            string
	TypedValue      string
	PrimitiveValue  string
	ProtoValue      string
	ComparableValue string
	InvalidValue    string
	Comment         string
	Units           string
	Scale           float64
	Offset          float64
	Array           bool
	CanExpand       bool
}

type ReturnValue added in v0.16.0

type ReturnValue struct {
	Name  string
	Units string
	Value string
}

type SwitchCase added in v0.16.0

type SwitchCase struct {
	Name       string
	CondValues []CondValue
}

Jump to

Keyboard shortcuts

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