1.16.1.8 ADC_ResultIsReady Function

C

bool ADC_ResultIsReady();

Summary

Returns the status of the channel conversion

Description

This function returns the status of the ADC conversion, whether it is complete and result is available or not. When auto-sampling mode is not used, user should call this API to get the conversion status.

In auto-sampling mode, user should use interrupt flag status to get the conversion status.

Precondition

ADC_Initialize() must have been called.

Parameters

None.

Returns

false - ADC conversion is not yet finished true - ADC result is available

Example

bool status;
status = ADC_ResultIsReady();

Remarks

None