2.1.4.4 DRV_MCMETROLOGY_Close Function

C
DRV_MCMETROLOGY_RESULT DRV_MCMETROLOGY_Close (void);
Summary

Closes the metrology driver.

Description

This routine closes the metrology driver making it unusable.

Note: This functions sets the metrology library in a reset state, stopping its execution. It is strongly recommended to call this function before reloading the Coprocessor program, or resetting the system.
Parameters

None.

Returns

If successful, returns DRV_MCMETROLOGY_SUCCESS. Otherwise, it returns DRV_MCMETROLOGY_ERROR.

Example
    app_metrologyData.state = APP_METROLOGY_STATE_INIT;
    app_metrologyData.startMode = DRV_MCMETROLOGY_START_HARD;
    
    DRV_MCMETROLOGY_Close();
    DRV_MCMETROLOGY_Initialize(NULL, RSTC_SR_RSTTYP(RSTC_SR_RSTTYP_SOFT_RST_Val));
Remarks

None.