/*
 * internal_temp_sensor.h
 *
 *  Created on: Sep 29, 2023
 *      Author: user
 */

#ifndef INC_INTERNAL_TEMP_SENSOR_H_
#define INC_INTERNAL_TEMP_SENSOR_H_

/* More information:
 * https://cxemka.com
 * https://github.com/Egoruch?tab=repositories
 */

#include "main.h"

/* Configurations BEGIN */
#define TMPSENSOR_USE_INTREF 1 /* 1 - Use Internal Reference Voltage; 0 - Not use; */
/* Configurations END */

/* Constant values BEGIN */
#define TMPSENSOR_ADC_RESOLUTION ADC_RESOLUTION_12B
#define TMPSENSOR_ADCREFVOL  3.3 /* Typical reference voltage, V  */

/* Constant values END */


/* PFP BEGIN */
int32_t TMPSENSOR_getTemperature(uint16_t adc_sensor, uint16_t adc_intref);
/* PFP END */


#endif /* INC_INTERNAL_TEMP_SENSOR_H_ */
