sunspec

package
v0.0.0-...-cb7d559 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model1

type Model1 struct {
	Mn  string `json:"Mn,omitempty"`
	Md  string `json:"Md,omitempty"`
	Opt string `json:"Opt,omitempty"`
	Vr  string `json:"Vr,omitempty"`
	SN  string `json:"SN,omitempty"`
	DA  uint16 `json:"DA,omitempty"`
}

type Model103

type Model103 struct {
	A       float64 `json:"A"`
	AphA    float64 `json:"AphA"`
	PhVphA  float64 `json:"PhVphA"`
	W       float64 `json:"W"`
	Hz      float64 `json:"Hz"`
	VA      float64 `json:"VA"`
	VAr     float64 `json:"VAr"`
	PF      float64 `json:"PF"`
	WH      float64 `json:"WH"`
	DCA     float64 `json:"DCA"`
	DCV     float64 `json:"DCV"`
	DCW     float64 `json:"DCW"`
	TmpCab  float64 `json:"TmpCab"`
	TmpOt   float64 `json:"TmpOt"`
	TmpSnk  float64 `json:"TmpSnk"`
	TmpTrns float64 `json:"TmpTrns"`
	St      uint16  `json:"St"`
	StVnd   uint16  `json:"StVnd"`
	Evt1    uint32  `json:"Evt1"`
	Evt2    uint32  `json:"Evt2"`
	EvtVnd1 uint32  `json:"EvtVnd1"`
	EvtVnd2 uint32  `json:"EvtVnd2"`
	EvtVnd3 uint32  `json:"EvtVnd3"`
	EvtVnd4 uint32  `json:"EvtVnd4"`

	AphB   *float64 `json:"AphB,omitempty"`
	PhVphB *float64 `json:"PhVphB,omitempty"`

	AphC   *float64 `json:"AphC,omitempty"`
	PhVphC *float64 `json:"PhVphC,omitempty"`

	PPVphAB *float64 `json:"PPVphAB,omitempty"`
	PPVphBC *float64 `json:"PPVphBC,omitempty"`
	PPVphCA *float64 `json:"PPVphCA,omitempty"`
}

type Model103Channel

type Model103Channel struct {
	channels.BaseChannel
}

func NewModel103Channel

func NewModel103Channel() *Model103Channel

func (*Model103Channel) SendState

func (c *Model103Channel) SendState(state *Model103) error

type Model1Channel

type Model1Channel struct {
	channels.BaseChannel
}

func NewModel1Channel

func NewModel1Channel() *Model1Channel

func (*Model1Channel) SendState

func (c *Model1Channel) SendState(state *Model1) error

Jump to

Keyboard shortcuts

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