precision-converters-firmware
ad4170_temperature_sensor.h
Go to the documentation of this file.
1 /***************************************************************************//*
2  * @file ad4170_temperature_sensor.h
3  * @brief AD4170 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 AD4170_TEMPERATURE_SENSOR_H_
14 #define AD4170_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 
27 /******************************************************************************/
28 /********************* Macros and Constants Definitions ***********************/
29 /******************************************************************************/
30 
31 /******************************************************************************/
32 /********************** Public/Extern Declarations ****************************/
33 /******************************************************************************/
34 
35 float get_ntc_thermistor_temperature(uint32_t ntc_sample, uint8_t chn);
36 float get_rtd_temperature(uint32_t rtd_sample, uint8_t chn);
37 float get_tc_temperature(uint32_t tc_sample, uint32_t cjc_sample,
38  uint8_t tc_chn,
39  uint8_t cjc_chn, float *cjc_temp);
40 
41 #ifdef __cplusplus // Closing extern c
42 }
43 #endif // _cplusplus
44 
45 #endif // end of AD4170_TEMPERATURE_SENSOR_H_
float get_tc_temperature(uint32_t tc_sample, uint32_t cjc_sample, uint8_t tc_chn, uint8_t cjc_chn, float *cjc_temp)
float get_rtd_temperature(uint32_t rtd_sample, uint8_t chn)
float get_ntc_thermistor_temperature(uint32_t ntc_sample, uint8_t chn)