#ifndef _CONFIG_H_
#define _CONFIG_H_
#include <stdint.h>
#include <ti/iqmath/include/IQmathLib.h>
//! \brief Contains EM SW Lib Phase Calibration
//!
typedef struct _EM_Phase_Calibration_
{
	uint32_t voltageSF;
	//!< Voltage Scaling Factor - used to calculate VRMS
	uint32_t currentSF;
	//!< Current Scaling Factor - used to calculate IRMS
	uint32_t activePowerSF;
	//!< Active Power Scaling Factor
	uint32_t reactivePowerSF;
	//!< Active Power Scaling Factor
	int16_t phaseCorrection;  //not be used for this demo 
	//!< Phase Correction between voltage and current (register units)

} EM_Phase_Calibration;

EM_Phase_Calibration g_emPhaseCalibration[1] =
{
    //PHASE_A
    {
        .voltageSF = _IQ24(0.699400000),
        .currentSF = _IQ24(0.051900000),
        .activePowerSF = _IQ30(0.579880000),
        .reactivePowerSF = _IQ30(8.000000000),
    },
};

#endif