#ifndef _NTC_H__
#define _NTC_H__
typedef struct {
	int temp_avg;
	float low_pass_filter;
}ntc_t;

/************ Temperature sensing section ***************/
/* V[V]=V0+dV/dT[V/Celsius]*(T-T0)[Celsius]*/
#define V0_V                          1.055f /*!< in Volts */
#define T0_C                          25 /*!< in Celsius degrees */
#define dV_dT                         0.023f /*!< V/Celsius degrees */
#define T_MAX                         110 /*!< Sensor measured
                                                       temperature at maximum
                                                       power stage working
                                                       temperature, Celsius degrees */
void ntc_sensor_init(void);
void ntc_sensor_sample(void);
int ntc_sensor_temperature(void);
#endif /* _NTC_H__ */

