/* ADC Hardware Averaging mode. 
This function configures the ADC as hardware averaging mode and converts the ADC input applied on positive input then prints the ADC input voltage on serial console after hardware averaging done and disable the ADC  */
void adc_hardware_averaging(void)
/* ADC Hardware Averaging mode. 
This function configures the ADC as hardware averaging mode and converts the ADC input applied on positive input then prints the ADC input voltage on serial console after hardware averaging done and disable the ADC  */
void adc_hardware_averaging(void)
{
	configure_adc_averaging();
	raw_result = adc_start_read_result();
	result = ((float)raw_result * (float)ADC_REFERENCE_INTVCC1_VALUE)/(float)ADC_12BIT_FULL_SCALE_VALUE;
	printf("\nADC Input Voltage with Averaging = %fV", result);
	adc_disable(&adc_instance);
}