firmware/Temperature/src/ADC.c
///////////////////////////////////////////////////////////////////////////////
/// \brief Normalize the value returned from an ADC_Read
///
/// \param ADC channel
/// \param destination pointer to return the value read
///
/// \return True on success else adc is not open
///////////////////////////////////////////////////////////////////////////////
\brief Normalize the value returned from an ADC_Read
\param ADC channel
\param destination pointer to return the value read

\return True on success else adc is not open
\ brief Normalize the value returned from an ADC_Read \ param ADC channel \ param destination pointer to return the value read \ return True on success else adc is not open
uint_fast8_t ADC_ReadNorm(uint_fast32_t channel, float *destination) {
	if (!destination) {
		return FALSE;
	}
	uint_fast16_t adcReading = 0;
	if (ADC_Read(channel, &adcReading )) {
		return ADC_Normalize(adcReading, destination);
	} else {
		return FALSE;
	}
}
uint_fast8_t ADC_ReadNorm ( uint_fast32_t channel , float * destination ) { if ( ! destination ) { return FALSE ; } uint_fast16_t adcReading = 0 ; if ( ADC_Read ( channel , & adcReading ) ) { return ADC_Normalize ( adcReading , destination ) ; } else { return FALSE ; } }
\brief Normalize the value returned from an ADC_Read
\param ADC channel
\param destination pointer to return the value read
\ brief Normalize the value returned from an ADC_Read \ param ADC channel \ param destination pointer to return the value read