1.1.4.26 DRV_METROLOGY_GetCalibrationReferences Function

C
DRV_METROLOGY_CALIBRATION_REFS * DRV_METROLOGY_GetCalibrationReferences (void);
Summary

Gets the pointer to the calibration references to be used in the internal calibration process of the metrology library.

Description

These internal calibration values set the target values to be measured, and will be the target on next calibration process when triggered.

The same pointed structure will include the result of the calibration process when finished, so it can be checked by the main application.

Parameters

None.

Returns

Pointer to the calibration references to be used in the next calibration process.

Example
    void APP_METROLOGY_StartCalibration(APP_METROLOGY_CALIBRATION * calibration)
    {
        DRV_METROLOGY_CALIBRATION_REFS * pCalibrationRefs;

        pCalibrationRefs = DRV_METROLOGY_GetCalibrationReferences();
        pCalibrationRefs->va = 220;
        pCalibrationRefs->ia = 30;
        pCalibrationRefs->aa = 60;
        pCalibrationRefs->calMask.magnitudeVa = 1;
        pCalibrationRefs->calMask.magnitudeIa = 1;
        pCalibrationRefs->calMask.anglePhaseA = 1;

        app_metrologyData.state = APP_METROLOGY_STATE_CHECK_CALIBRATION;
        DRV_METROLOGY_StartCalibration();
    }
Remarks

None.