model403

package
v0.0.0-...-1daccfa Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelID          = 403
	ModelLabel       = "String Combiner (Current)"
	ModelDescription = "A basic string combiner model"
)
View Source
const (
	DCA        = "DCA"
	DCAMax     = "DCAMax"
	DCA_SF     = "DCA_SF"
	DCAhr      = "DCAhr"
	DCAhr_SF   = "DCAhr_SF"
	DCV        = "DCV"
	DCV_SF     = "DCV_SF"
	Evt        = "Evt"
	EvtVnd     = "EvtVnd"
	InDCA      = "InDCA"
	InDCA_SF   = "InDCA_SF"
	InDCAhr    = "InDCAhr"
	InDCAhr_SF = "InDCAhr_SF"
	InEvt      = "InEvt"
	InEvtVnd   = "InEvtVnd"
	InID       = "InID"
	N          = "N"
	Tmp        = "Tmp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block403

type Block403 struct {
	DCA_SF     sunspec.ScaleFactor `sunspec:"offset=0"`
	DCAhr_SF   sunspec.ScaleFactor `sunspec:"offset=1"`
	DCV_SF     sunspec.ScaleFactor `sunspec:"offset=2"`
	DCAMax     uint16              `sunspec:"offset=3,sf=DCA_SF"`
	N          sunspec.Count       `sunspec:"offset=4"`
	Evt        sunspec.Bitfield32  `sunspec:"offset=5"`
	EvtVnd     sunspec.Bitfield32  `sunspec:"offset=7"`
	DCA        int16               `sunspec:"offset=9,sf=DCA_SF"`
	DCAhr      sunspec.Acc32       `sunspec:"offset=10,sf=DCAhr_SF"`
	DCV        int16               `sunspec:"offset=12,sf=DCV_SF"`
	Tmp        int16               `sunspec:"offset=13"`
	InDCA_SF   sunspec.ScaleFactor `sunspec:"offset=14"`
	InDCAhr_SF sunspec.ScaleFactor `sunspec:"offset=15"`

	Repeats []Block403Repeat
}

func (*Block403) GetId

func (block *Block403) GetId() sunspec.ModelId

type Block403Repeat

type Block403Repeat struct {
	InID     uint16             `sunspec:"offset=0"`
	InEvt    sunspec.Bitfield32 `sunspec:"offset=1"`
	InEvtVnd sunspec.Bitfield32 `sunspec:"offset=3"`
	InDCA    int16              `sunspec:"offset=5,sf=InDCA_SF"`
	InDCAhr  sunspec.Acc32      `sunspec:"offset=6,sf=InDCAhr_SF"`
}

Jump to

Keyboard shortcuts

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