2.1.4.4 DRV_MCMETROLOGY_Close Function
C
DRV_MCMETROLOGY_RESULT DRV_MCMETROLOGY_Close (void);SummaryCloses the metrology driver.
DescriptionThis 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.
ParametersNone.
ReturnsIf 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));RemarksNone.
