firmware/Temperature/src/ADC.c
///////////////////////////////////////////////////////////////////////////////
/// \brief Calculated the calibrated value from an ADC_Read result
///
/// \param rawData from the destination parameter in ADC_Read
///
/// \return Calibrated reading value in Celsius
/// \sa ADC_Read()
///////////////////////////////////////////////////////////////////////////////
\brief Calculated the calibrated value from an ADC_Read result
\param rawData from the destination parameter in ADC_Read

\return Calibrated reading value in Celsius
\sa ADC_Read()
\ brief Calculated the calibrated value from an ADC_Read result \ param rawData from the destination parameter in ADC_Read \ return Calibrated reading value in Celsius \ sa ADC_Read ()
int32_t ADC_CalibratedTemperature(uint_fast16_t rawData) {
	int32_t temperature; 
	temperature = (((int32_t) rawData * VDD_APPLI / VDD_CALIB) - (int32_t) *TEMP30_CAL_ADDR );
	temperature = temperature * (int32_t)(110 - 30);
	temperature = temperature / (int32_t)(*TEMP110_CAL_ADDR - *TEMP30_CAL_ADDR);
	temperature = temperature + 30;
	return temperature;
}
int32_t ADC_CalibratedTemperature ( uint_fast16_t rawData ) { int32_t temperature ; temperature = ( ( ( int32_t ) rawData * VDD_APPLI / VDD_CALIB ) - ( int32_t ) * TEMP30_CAL_ADDR ) ; temperature = temperature * ( int32_t ) ( 110 - 30 ) ; temperature = temperature / ( int32_t ) ( * TEMP110_CAL_ADDR - * TEMP30_CAL_ADDR ) ; temperature = temperature + 30 ; return temperature ; }
\brief Calculated the calibrated value from an ADC_Read result
\param rawData from the destination parameter in ADC_Read
\ brief Calculated the calibrated value from an ADC_Read result \ param rawData from the destination parameter in ADC_Read
/* will contain the temperature in degree Celsius */