parser

package
v0.0.0-...-3518e9e Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDcus = 256

	DataTypeUndefined = C._undefined
	DataTypeInt16     = C._16bit_integer
	DataTypeInt32     = C._32bit_integer
	DataTypeInt64     = C._64bit_integer
	DataTypeFloat32   = C._32bit_float
	DataTypeFloat64   = C._64bit_double
	DataTypeComplex32 = C._32bit_complex
	DataTypeUint32    = C._32bit_uint

	MinDataType = DataTypeInt16
	MaxDataType = DataTypeUint32
)

Variables

This section is empty.

Functions

func FStat

func FStat(f *os.File) os.FileInfo

Types

type ChannelAndIndex

type ChannelAndIndex struct {
	Name string
	ChannelIndex
}

type ChannelIndex

type ChannelIndex struct {
	DcuId         int
	ChannelNumber int
}

type ConfigFileInfo

type ConfigFileInfo struct {
	Path      string
	Hash      uint32
	Timestamp time.Time
}

type DcuConfig

type DcuConfig struct {
	DcuId       int
	ChannelHash uint32
	ConfigHash  uint32
	Channels    []OnlineChannel
}

type IfoConfig

type IfoConfig struct {
	//Channels []ChannelAndIndex
	Files      []ConfigFileInfo `json:"-"`
	Dcus       map[int]DcuConfig
	ConfigHash uint32
}

func NewIfoConfig

func NewIfoConfig() *IfoConfig

func Parse

func Parse(path string) (*IfoConfig, error)

type OnlineChannel

type OnlineChannel struct {
	Name         string
	DcuId        int
	DataType     byte
	DataRate     int32
	BytesPer16th int32
	DataOffset   int32
	SignalGain   float32
	SignalSlope  float32
	SignalOffset float32
	Units        string
}

OnlineChannel is the metadata describing a channel

Jump to

Keyboard shortcuts

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