
2
3
1024 10
_
_
int
_
V
AC OFFSET
V
NOISE
VGAIN
§
·
§
·
u
¨
¸
¨
¸
¨
¸
¨
¸
©
¹
©
¹
Embedded Metering Library API
5.5.3.1.12 int16_t get_initial_v_dc_estimate (int phx)
Get the initial voltage channel ADC dc offset of phase phx
Parameter: phx = 1
Return: the voltage channel dc offset of phase phx, in ADC counts, stored in calibration parameter
memory
5.5.3.1.13 void set_v_dc_estimate (int phx, int16_t value)
Write the voltage channel ADC dc offset of phase phx with value
Parameter:
•
phx = 1
•
value : the value to be written to voltage channel dc offset for phase phx, in ADC counts, in calibration
parameter memory
Return: none
5.5.3.1.14 int32_t get_v_ac_offset (int phx)
Get the voltage channel ac offset of phase phx
Parameter: phx = 1
Return: the voltage channel ac offset of phase phx, in square of ADC counts, to be stored in calibration
parameter memory
5.5.3.1.15 void set_v_ac_offset (int phx, int32_t value)
Write the voltage channel ac offset of phase phx with value. Value should be calculated as
(23)
Parameter:
•
phx = 1
•
value : the value to be written to voltage channel ac offset for phase phx, in square of ADC counts, in
calibration parameter memory
Return: none
5.5.3.1.16 calibration_scaling_factor_t get_I_rms_scaling(int phx);
Get the current scaling factor of phase phx
Parameter: phx = 1
Return: Current scaling factor in calibration parameter memory (see metrology-types.h for type definition
of calibration_scaling_factor_t
5.5.3.1.17 void set_I_rms_scaling(int phx, calibration_scaling_factor_t value);
Write the current scaling factor of phase phx with value
Parameter:
•
phx = 1
•
value = the value to be written to current scaling factor in calibration parameter memory
Return: none
43
SLAU587 – August 2014
Firmware and Embedded Metering Library API
Copyright © 2014, Texas Instruments Incorporated