
2
6
1024 10
_
_
int
_
I
AC OFFSET
I
NOISE
IGAIN
§
·
§
·
u
¨
¸
¨
¸
¨
¸
¨
¸
©
¹
©
¹
Embedded Metering Library API
5.5.3.1.18 int32_t get_i_dc_estimate(int phx);
Get the active (dynamic) current channel ADC dc offset of phase phx
Parameter: phx = 1
Return: the dynamic current channel dc offset of phase phx in ADC counts
5.5.3.1.19 int32_t get_initial_i_dc_estimate(int phx)
Get the initial current channel ADC dc offset of phase phx
Parameter: phx = 1
Return: the current channel dc offset of phase phx, in ADC counts, stored in calibration parameter
memory
5.5.3.1.20 void set_i_dc_estimate(int phx, int32_t value);
Write the current channel ADC dc offset of phase phx with value
Parameter:
•
phx = 1
•
value : the value to be written to current channel dc offset for phase phx, in ADC counts, in calibration
parameter memory
Return: none
5.5.3.1.21 int32_t get_i_ac_offset(int phx);
Get the current channel ac offset of phase phx
Parameter: phx = 1
Return: the current channel ac offset, in square of ADC counts, of phase phx to be stored in calibration
parameter memory
5.5.3.1.22 void set_i_ac_offset(int phx, int32_t value);
Write the current channel ac offset of phase phx with value. Value should be calculated as
(24)
Parameter:
•
phx = 1
•
value : in square of ADC counts, he value to be written to current channel ac offset for phase phx in
calibration parameter memory
Return: none
5.5.3.1.23 uint16_t get_compensate_capacitor_value (int phx)
Get EMI filter capacitor value of phase phx
Parameter: phx = 1
Return: the capacitance to be compensate (in 1/64 µF unit) in calibration parameter memory
44
Firmware and Embedded Metering Library API
SLAU587 – August 2014
Copyright © 2014, Texas Instruments Incorporated