1.5.24.5 SDADC_ConversionResultIsReady Function

C

bool SDADC_ConversionResultIsReady( void )

Summary

Returns the status of the conversion.

Description

This function returns the status of whether conversion is complete.

Precondition

SDADC_Initialize() function must have been called first for the associated instance. Also conversion must have been started.

Parameters

None.

Returns

true - Conversion is not yet finished or not started yet false - Conversion is complete

Example

bool sdadcConversionStatus;
SDADC_Initialize();
SDADC_ConversionStart();
sdadcConversionStatus = SDADC_ConversionResultIsReady();

Remarks

This function should be called only after conversion is started.