LMA
Lightweight Metrology for AC
Loading...
Searching...
No Matches
LMA_Phase Struct Reference

Description

Phase data.

Data structure containing phase (V & I pair) signal processing parameters.

Data Fields

struct LMA_Phase_str * p_next
 Forms singly linked list of phases (null terminated)
LMA_PhaseInputs inputs
 Area to load inputs (ADC Samples) for processing.
LMA_PhaseAccs accs
 Object holding accumulator data.
LMA_ZeroCross zero_cross
 Zero cross tracking variables for voltage.
LMA_PhaseCalibration calib
 Instance of the phases calibration data block.
LMA_PhaseAngleError pa_error
 phase angle error data
LMA_Measurements measurements
 Object holding measurements from last computation window update.
LMA_EnergyUnit energy_units
 Energy processing block.
LMA_Status status
 Phase status.
LMA_Signals sigs
 Phase signals.
LMA_Neutralp_neutral
 Pointer to neutral channel (if present)
float(* p_computation_hook )(float *i, float *v, float *f)
 Hook to enable applying a compensation factor to power based on i, v and f args.
uint32_t phase_number
 zero indexed phase number for identification