2.1.4.5 DRV_MCMETROLOGY_Start Function

C
DRV_MCMETROLOGY_RESULT DRV_MCMETROLOGY_Start (void);
Summary

Starts the metrology driver.

Description

This routine must not be called until the metrology library application running in the second processor is ready to be used.

Parameters

None.

Returns

Returns DRV_MCMETROLOGY_SUCCESS when the metrology library application is ready to be used. Otherwise, it returns DRV_MCMETROLOGY_ERROR.

Example
        case APP_METROLOGY_STATE_START:
        {
            if (DRV_MCMETROLOGY_Start() == DRV_MCMETROLOGY_SUCCESS)
            {
                app_metrologyData.state = APP_METROLOGY_STATE_RUNNING;
            }
            else
            {
                app_metrologyData.state = APP_METROLOGY_STATE_ERROR;
            }

            break;
        }
Remarks

This routine must be called after DRV_MCMETROLOGY_Start routine has been called.