1.5.24.6 SDADC_ConversionResultGet Function

C

int16_t SDADC_ConversionResultGet( void )

Summary

Returns the conversion result.

Description

This function returns the result of completed conversion.

Precondition

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

Parameters

None.

Returns

Returns 16 bit signed conversion result.

Example

int16_t sdadcResult = 0;
SDADC_Initialize();
SDADC_ConversionStart();
sdadcResult = SDADC_ConversionResultGet();

Remarks

This function can be called from interrupt or by polling the status when result is available.