1.12.1.12 ADCHS_ChannelResultIsReady Function

C

bool ADCHS_ChannelResultIsReady(ADCHS_CHANNEL_NUM channel)

Summary

Returns the status of the channel conversion

Description

This function returns the status of the channel whether conversion is complete and result is available

Precondition

ADCHS_Initialize() function must have been called first for the associated instance.

Parameters

Param Description
channel channel number

Returns

false - channel is disabled or conversion is not yet finished true - channel is enabled and result is available

Example

bool ch_status;
ADCHS_Initialize();
ADCHS_ModulesEnable(ADCHS_MODULE0_MASK);
ADCHS_ConversionStart();
ch_status = ADCHS_ChannelResultIsReady(ADCHS_CH0);

Remarks

None