Jump to main content

##

# 2.3.69 ADCx_ChannelResultIsReady Function

## C

    // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
    inline static bool ADCx_ChannelResultIsReady(ADCx_CHANNEL channel);

## Summary

Returns the status of conversion and determine if conversion is completed.

## Description

This inline function returns the status of conversion.This function is used to determine if conversion is completed. When conversion is complete the function returns true otherwise false.

## Precondition

ADCx_SoftwareTriggerEnable() function should have been called before calling this function.

## Parameters

Param | Description
--- | ---
channel | Selected channel

## Returns

true - Conversion is complete.

false - Conversion is not complete.

## Example

    bool status;
    status = ADC1_ChannelResultIsReady(ADC1_CHANNEL0);

## Remarks

None.