1.1.4.4 DRV_METROLOGY_Close Function

C
DRV_METROLOGY_RESULT DRV_METROLOGY_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_METROLOGY_SUCCESS. Otherwise, it returns DRV_METROLOGY_ERROR.

Example
    app_metrologyData.state = APP_METROLOGY_STATE_INIT;
    app_metrologyData.startMode = DRV_METROLOGY_START_HARD;
    
    DRV_METROLOGY_Close();
    DRV_METROLOGY_Initialize(NULL, RSTC_SR_RSTTYP(RSTC_SR_RSTTYP_SOFT_RST_Val));
Remarks

None.