precision-converters-firmware
ad4130_temperature_sensor.h
Go to the documentation of this file.
1 /***************************************************************************//*
2  * @file ad4130_temperature_sensor.h
3  * @brief AD4130 temperature sensor module global defines
4 ******************************************************************************
5  * Copyright (c) 2022 Analog Devices, Inc.
6  * 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 AD4130_TEMPERATURE_SENSOR_H_
14 #define AD4130_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(void *dev, uint32_t ntc_sample,
36  uint8_t chn);
37 float get_rtd_temperature(void *dev, uint32_t rtd_sample, uint8_t chn);
38 float get_tc_temperature(void *dev,
39  uint32_t tc_sample, uint32_t cjc_sample,
40  uint8_t tc_chn, uint8_t cjc_chn,
41  float *cjc_temp);
42 
43 #ifdef __cplusplus // Closing extern c
44 }
45 #endif // _cplusplus
46 
47 #endif // end of AD4130_TEMPERATURE_SENSOR_H_
float get_tc_temperature(void *dev, uint32_t tc_sample, uint32_t cjc_sample, uint8_t tc_chn, uint8_t cjc_chn, float *cjc_temp)
float get_rtd_temperature(void *dev, uint32_t rtd_sample, uint8_t chn)
float get_ntc_thermistor_temperature(void *dev, uint32_t ntc_sample, uint8_t chn)