
Embedded Metering Library API
5.5.3.1.5 int16_t get_temperature_slope (void)
Get the calibration value of the temperature slope
Parameter: none
Return: The calibrated ADC reading increment per 0.1 degree Celsius in calibration parameter memory
5.5.3.1.6 void set_temperature_parameters (int16_t temperature_at_calibration, int16_t
temperature_sensor_intercept, int16_t temperature_sensor_slope)
Write temperature related calibration value into calibration parameter memory
Parameter:
•
temperature_at_calibration : the temperature in 0.1 degree Celsius which the calibration is done.
•
temperature_sensor_intercept : the ADC reading at calibration temperature.
•
temperature_sensor_slope : the ADC reading increment per 0.1 degree Celsius.
Return: none
5.5.3.1.7 calibration_scaling_factor_t get_P_scaling (int phx)
Get power scaling factor of phase phx
Parameter: phx = 1
Return: Power scaling factor in calibration parameter memory (see metrology-types.h for type definition of
calibration_scaling_factor_t
5.5.3.1.8 void set_P_scaling (int phx, calibration_scaling_factor_t value)
Write power scaling factor of phase phx with value
Parameter:
•
phx = 1
•
value = the value to be written to power scaling factor in calibration parameter memory
Return: none
5.5.3.1.9 calibration_scaling_factor_t get_V_rms_scaling (int phx)
Get the voltage scaling factor of phase phx
Parameter: phx = 1
Return: Voltage scaling factor in calibration parameter memory (see metrology-types.h for type definition
of calibration_scaling_factor_t)
5.5.3.1.10 void set_V_rms_scaling (int phx, calibration_scaling_factor_t value)
Write the voltage scaling factor of phase phx with value
Parameter:
•
phx = 1
•
value = the value to be written to voltage scaling factor in calibration parameter memory
Return: none
5.5.3.1.11 int16_t get_v_dc_estimate (int phx)
Get the active (dynamic) voltage channel ADC dc offset of phase phx
Parameter: phx = 1
Return: the dynamic voltage channel dc offset, in ADC counts, of phase phx
42
Firmware and Embedded Metering Library API
SLAU587 – August 2014
Copyright © 2014, Texas Instruments Incorporated