precision-converters-firmware
ad7124_temperature_sensor.h
Go to the documentation of this file.
1 /***************************************************************************//*
2  * @file ad7124_temperature_sensor.h
3  * @brief AD7124 temperature sensor module global defines
4  * @details
5 ******************************************************************************
6  * Copyright (c) 2021 Analog Devices, Inc. All Rights Reserved.
7  *
8  * This software is proprietary to Analog Devices, Inc. and its licensors.
9  * By using this software you agree to the terms of the associated
10  * Analog Devices Software License Agreement.
11 ******************************************************************************/
12 
13 #ifndef AD7124_TEMPERATURE_SENSOR_H_
14 #define AD7124_TEMPERATURE_SENSOR_H_
15 
16 #ifdef __cplusplus
17 extern "C"
18 {
19 #endif // _cplusplus
20 
21 /******************************************************************************/
22 /***************************** Include Files **********************************/
23 /******************************************************************************/
24 
25 #include <stdint.h>
26 #include "ad7124_regs_configs.h"
27 
28 /******************************************************************************/
29 /********************* Macros and Constants Definitions ***********************/
30 /******************************************************************************/
31 
32 /******************************************************************************/
33 /********************** Public/Extern Declarations ****************************/
34 /******************************************************************************/
35 
36 float get_tc_temperature(float tc_sample, float cjc_sample,
37  cjc_sensor_type cjc_sensor, float *cjc_temp);
38 uint32_t get_rtd_rref(void);
39 float get_rtd_temperature(int32_t rtd_sample, uint8_t gain);
40 void store_rtd_calibrated_iout_ratio(float iout_ratio, bool status);
41 float get_ntc_thermistor_temperature(int32_t ntc_sample);
42 float get_ptc_thermistor_temperature(int32_t ntc_sample);
43 
44 #ifdef __cplusplus // Closing extern c
45 }
46 #endif // _cplusplus
47 
48 #endif // end of AD7124_TEMPERATURE_SENSOR_H_
cjc_sensor_type
Definition: ad7124_regs_configs.h:173
float get_tc_temperature(float tc_sample, float cjc_sample, cjc_sensor_type cjc_sensor, float *cjc_temp)
float get_rtd_temperature(int32_t rtd_sample, uint8_t gain)
uint32_t get_rtd_rref(void)
void store_rtd_calibrated_iout_ratio(float iout_ratio, bool status)
float get_ptc_thermistor_temperature(int32_t ntc_sample)
float get_ntc_thermistor_temperature(int32_t ntc_sample)