upmuparser

package
v4.15.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ReadingsPerStruct = 120
View Source
const UPMU_ONE_SECOND_EXPANSION_SET_ONE_SIZE int = 2880
View Source
const UPMU_ONE_SECOND_OUTPUT_STANDARD_SIZE int = 6312

Variables

View Source
var STREAMS [19]string = [19]string{"L1MAG", "L1ANG", "L2MAG", "L2ANG", "L3MAG", "L3ANG", "C1MAG", "C1ANG", "C2MAG", "C2ANG", "C3MAG", "C3ANG", "LSTATE", "FUND_W", "FUND_VAR", "FUND_VA", "FUND_DPF", "FREQ_L1_1S", "FREQ_L1_C37"}

Functions

func GetC1Ang

func GetC1Ang(index int, obj *Sync_Output) float64

func GetC1Mag

func GetC1Mag(index int, obj *Sync_Output) float64

func GetC2Ang

func GetC2Ang(index int, obj *Sync_Output) float64

func GetC2Mag

func GetC2Mag(index int, obj *Sync_Output) float64

func GetC3Ang

func GetC3Ang(index int, obj *Sync_Output) float64

func GetC3Mag

func GetC3Mag(index int, obj *Sync_Output) float64

func GetFreqL11S

func GetFreqL11S(index int, obj *Sync_Output) float64

func GetFreqL1C37

func GetFreqL1C37(index int, obj *Sync_Output) float64

func GetFundDPF

func GetFundDPF(index int, obj *Sync_Output) float64

func GetFundVA

func GetFundVA(index int, obj *Sync_Output) float64

func GetFundVar

func GetFundVar(index int, obj *Sync_Output) float64

func GetFundW

func GetFundW(index int, obj *Sync_Output) float64

func GetL1Ang

func GetL1Ang(index int, obj *Sync_Output) float64

func GetL1Mag

func GetL1Mag(index int, obj *Sync_Output) float64

func GetL2Ang

func GetL2Ang(index int, obj *Sync_Output) float64

func GetL2Mag

func GetL2Mag(index int, obj *Sync_Output) float64

func GetL3Ang

func GetL3Ang(index int, obj *Sync_Output) float64

func GetL3Mag

func GetL3Mag(index int, obj *Sync_Output) float64

func GetLockState

func GetLockState(index int, obj *Sync_Output) float64

Types

type InsertGetter

type InsertGetter func(int, *Sync_Output) float64

type Sync_Output

type Sync_Output struct {
	Version Sync_Output_Type
	Data    Upmu_one_second_output_expansion_set_one
}

func ParseSyncOutArray

func ParseSyncOutArray(data []byte) ([]*Sync_Output, error)

func (*Sync_Output) GetInsertGetters

func (s *Sync_Output) GetInsertGetters() []InsertGetter

func (*Sync_Output) SampleRate

func (s *Sync_Output) SampleRate() float32

func (*Sync_Output) Times

func (s *Sync_Output) Times() [6]int32

type Sync_Output_Type

type Sync_Output_Type int
const (
	OUTPUT_STANDARD Sync_Output_Type = iota
	EXPANSION_SET_ONE
)

type Upmu_one_second_expansion_set_one

type Upmu_one_second_expansion_set_one struct {
	Fundamental_watts_total   [120]float32
	Fundamental_var_total     [120]float32
	Fundamental_va_total      [120]float32
	Fundamental_dpf_total     [120]float32
	Frequency_l1_e_one_second [120]float32
	Frequency_l1_e_c37        [120]float32

} // 2880 bytes

type Upmu_one_second_output_expansion_set_one

type Upmu_one_second_output_expansion_set_one struct {
	Basic_data        Upmu_one_second_output_standard
	Expansion_set_one Upmu_one_second_expansion_set_one

} // 9192 bytes

type Upmu_one_second_output_standard

type Upmu_one_second_output_standard struct {
	Data                Upmu_one_second_set
	Upmu_debug_info_pll [4]uint32 // the actual struct definition says 'umpu'
	Upmu_debug_info_gps [7]float32

} // 6312 bytes

type Upmu_one_second_set

type Upmu_one_second_set struct {
	Sample_interval_in_milliseconds float32
	Timestamp                       [6]int32
	Status                          [120]int32
	L1_e_vector_space               [120]Upmu_vector
	L2_e_vector_space               [120]Upmu_vector
	L3_e_vector_space               [120]Upmu_vector
	C1_e_vector_space               [120]Upmu_vector
	C2_e_vector_space               [120]Upmu_vector
	C3_e_vector_space               [120]Upmu_vector

} // 6268 bytes

type Upmu_vector

type Upmu_vector struct {
	Phase_in_degrees            float32
	Fundamental_magnitude_volts float32

} // 8 bytes

Jump to

Keyboard shortcuts

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