4.10.1 Calculate Total Energy API

The “void EnergyProcess(void)” is a good example of a metering API. It is used to accumulate the energy in the corresponding TOU zone and to store the accumulated data in non-volatile memory. The Demo Meter application accumulates active energy (Wh), providing a baseline easily modifiable or upgradable for the customer to include, for example, reactive or apparent energy accumulation, to consider the effect of the creeps in the energy accumulation, or to change the non-volatile memory saving strategy.

The Demo Meter application calls “EnergyProcess” periodically, typically when new data for the metrology library is received at the end of the integration period. Calling example:

EnergyProcess();