1.38.2.8 ADCx_ConversionSequenceIsFinished Function

C

bool ADCx_ConversionSequenceIsFinished( void ) // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.

Summary

Returns the status of automatic sequence conversion.

Description

This function checks the status of the conversion sequence.

Precondition

ADC_Initialize() function must have been called first for the associated instance.And conversion must have been started.

Parameters

None.

Returns

True - All the enabled channels in the sequence have finished conversion False - Sequence conversion is ongoing

Example

bool seq_status;
ADC0_Initialize();
ADC0_ConversionStart();
seq_status = ADC0_ConversionSequenceIsFinished();

Remarks

This function is valid only if auto sequence feature is enabled.