ADC_GetConversion(adc_channel_t channel): This routine is used to select desired channel for conversion and to get the analog to digital converted value.
CODE:
----------------------------------------------------
#include "mcc_generated_files/mcc.h"
#include "lcd.h"
#include "stdio.h"
/*...