3.3.1.2 ADCx_ConversionResultGet

Returns the conversion result of the channel.

This function returns the result of completed conversion of the channel. This function can be called from interrupt or by polling the status when result is available. User should decode the result based on result sign mode (differential mode) and result resolution (8, 10, 12 or 16 bit) configuration.

int16_t 
ADCx_ConversionResultGet 
(
     void
);

Precondition

  • ADCx_Initialize() function must have been called first for the associated instance.And conversion must have been started. Also check whether result is ready to read.

Parameters

  • void

Returns

  • void