1.1.4.5 DRV_METROLOGY_Start Function

C
DRV_METROLOGY_RESULT DRV_METROLOGY_Start (void);
Summary

Starts the metrology library execution in the coprocessor.

Description

This routine must not be called until the metrology driver is in READY status, meaning that the library is loaded in the second processor and ready to be used.

Parameters

None.

Returns

Returns DRV_METROLOGY_SUCCESS when the metrology library application started correctly and is ready to be used. Otherwise, it returns DRV_METROLOGY_ERROR.

Example
        case APP_METROLOGY_STATE_START:
        {
            if (DRV_METROLOGY_GetStatus() == DRV_METROLOGY_STATUS_READY)
            {
                if (DRV_METROLOGY_Start() == DRV_METROLOGY_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_METROLOGY_Initialize and DRV_METROLOGY_Open routines have been called.