This init function reads the current temperature and fills the array mg_au16Data with this value. The averaged temperature is also preset to the current temperature.
Definition at line 105 of file temp.c. References adc_Read(), ADC_TEMPERATURE, AVG_COUNT, mg_au16Data, mg_u16Value, and mg_u8Idx. Referenced by init_InitModules(). { UINT16 u16Help = adc_Read(ADC_TEMPERATURE); for(UINT8 i=0U; i<AVG_COUNT; i++) { mg_au16Data[i] = u16Help; } mg_u16Value = u16Help; mg_u8Idx = 0U; }
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() |