1.40.10.6 FREQM_ErrorGet Function

C

FREQM_ERROR FREQM_ErrorGet(void)

Summary

Returns error that may have occurred during the frequency measurement process.

Description

This function returns the error that may have occurred during the frequency measurement process. The function returns the error for the last completed operation. The value returned by the FREQM_FrequencyGet() function is valid only if this function returns FREQM_ERROR_NONE.

Precondition

FREQM_Initialize() and FREQM_MeasurementStart() functions should be called.

Parameters

None.

Returns

Errors occurred as listed by FREQM_ERROR.

Example

if (FREQM_ERROR_OVERFLOW == FREQM_ErrorGet())
{
    //Handle overflow error here
}
else
{
    measuredFrequency = FREQM_FrequencyGet();
}

Remarks

None.