#ifndef TEMP_SENSE_H_
#define TEMP_SENSE_H_

#define TEMP_SENSE_MFG	"MURATA"
#define TEMP_SENSE_PN	"NCP15XH103F03RC"

#define TEMP_SENSE_R25		10000.0f
#define TEMP_SENSE_T25		298.15f // 25degC in Kelvin
#define TEMP_SENSE_B25_50	3380.0f
#define TEMP_SENSE_B25_80	3428.0f
#define TEMP_SENSE_B25_85	3434.0f
#define TEMP_SENSE_B25_100	3455.0f

#define MAX_ADC_COUNTS_F	4095.0f
#define ADC_REF_VOLTAGE_F	3.3f
#define FIXED_RESISTANCE_F	10000.0f

void temp_sense_update_adc_value(uint16_t newval);
void temp_sense_calc_temperature(void);
float temp_sense_get_temperature(void);


#endif /* TEMP_SENSE_H_ */
