LMA
Lightweight Metrology for AC
Loading...
Searching...
No Matches

Description

LMA Types

The LMA API relies on a set of unique data structure, enum's and other defined types to operate, here these are outlined.
Checkout the Storage topic to see what types are particularly useful for non-volatile storage.

Collaboration diagram for Types:

Topics

 Storage
 LMA Storage Data

Data Structures

struct  LMA_PhaseInputs
 Structure for defining the inputs to a phase object in terms of samples. More...
struct  LMA_NeutralInputs
 Structure for defining the inputs to a neutral object in terms of samples. More...
struct  LMA_Accs
 General Accumulator structure. More...
struct  LMA_PhaseAccs
 Phase accumulators. More...
struct  LMA_NeutralAccs
 Neutral accumulators. More...
struct  LMA_ZeroCross
 Zero cross detection data. More...
struct  LMA_Measurements
 Measurement output. More...
struct  LMA_ConsumptionData
 Energy computation data. More...
struct  LMA_EnergyUnit
 Energy unit data. More...
struct  LMA_PhaseAngleError
 Phase-angle error calibration data. More...
struct  LMA_Signals
 Signal/flag data. More...
struct  LMA_Neutral
 Neutral data. More...
struct  LMA_Phase
 Phase data. More...
struct  LMA_PhaseCalibArgs
 Calibration arguments (per phase) More...
struct  LMA_GlobalCalibArgs
 Calibration arguments (global) More...
struct  LMA_Config
 Runtime LMA Configuration. More...

Enumerations

enum  LMA_Status
 Phase status. More...
enum  LMA_CalibrationStatus
 Calibration status. More...

Enumeration Type Documentation

◆ LMA_Status

enum LMA_Status

Phase status.

Enumerated type to indicate events detected per phase

Enumerator
LMA_OK 

No Problems.

LMA_NO_ACTIVE_LOAD 

No Active Power (P < LMA_Config.no_load_p)

LMA_NO_REACTIVE_LOAD 

No Reactive Power (Q < LMA_Config.no_load_p)

LMA_NO_APPARENT_LOAD 

No Apparent Power (S < LMA_Config.no_load_p)

LMA_VOLTAGE_SAG 

Vrms Sagged (Vrms < LMA_Config.v_sag)

LMA_VOLTAGE_SWELL 

Vrms Swelled (Vrms > LMA_Config.v_swell)

◆ LMA_CalibrationStatus

Calibration status.

Enumerated type to indicate calibration status.

Enumerator
LMA_CALIB_OK 

Calibration ended sucessfully.

LMA_CALIB_PHASE_ANGLE_ERROR 

The phase difference between the current and voltage is too large.

Suspect non UPF load