
Embedded Metering Library API
5.5.2.8
void AC_MODE_OFF (void)
Called when the background process exits ac measurement mode.
5.5.2.9
void DC_MODE_ON (void)
Called when the background process enters dc measurement mode.
5.5.2.10 void DC_MODE_OFF (void)
Called when the background process exits dc measurement mode.
5.5.2.11 void active_energy_pulse_start (void)
Called when the background process is generating an energy pulse and the energy pulse output is going
from idle to pulsing state.
5.5.2.12 void active_energy_pulse_end (void)
Called when the background process is generating an energy pulse and the energy pulse output is going
from pulsing to idle.
5.5.3 Application-Level Calibration Functions
5.5.3.1
Functions for Reading and Writing Calibration Parameters
5.5.3.1.1 int get_calibration_status (void)
Returns the calibration status of the meter
The returned value is not defined by the embedded metering library. Interpretation is to be defined by
application
5.5.3.1.2 void set_calibration_status (int value)
Sets the calibration status to a specific value into the calibration parameter memory
The parameter value is not defined by the embedded metering library. Interpretation is to be defined by
application
5.5.3.1.3 int clear_calibration_data (void)
Clear all calibration data in calibration parameter memory
NOTE:
Must do this before writing any calibration data since all calibration data is stored in the
same flash page. A reading and backup of all calibration parameter should be done before
clearing the calibration data. Writing any calibration data should write the modified values
together with all other values that is backed up and not modified.
5.5.3.1.4 int16_t get_temperature_intercept (void)
Get the calibration value of the temperature intercept.
Parameter: none
Return: The calibrated ADC reading for calibration temperature in calibration parameter memory
41
SLAU587 – August 2014
Firmware and Embedded Metering Library API
Copyright © 2014, Texas Instruments Incorporated