precision-converters-firmware
ad4170_thermocouple_config.h
Go to the documentation of this file.
1 /*************************************************************************/
13 #ifndef _AD4170_THERMOCOUPLE_CONFIG_H_
14 #define _AD4170_THERMOCOUPLE_CONFIG_H_
15 
16 /******************************************************************************/
17 /***************************** Include Files **********************************/
18 /******************************************************************************/
19 
20 #include <stdint.h>
21 #include <stdlib.h>
22 #include "ad4170.h"
23 
24 /******************************************************************************/
25 /********************** Macros and Constants Definition ***********************/
26 /******************************************************************************/
27 
28 /* Select the Cold Junction Compensation (CJC) sensor type */
29 #define USE_CJC_AS_RTD
30 //#define USE_CJC_AS_THERMISTOR
31 
32 /* Select filter type for thermocouple config (same for all channels) */
33 #define AD4170_FILTER_CONFIG AD4170_FILT_SINC3
34 
35 /* Select FS (or ODR) for thermocouple config (for SINC3 filter) */
36 #define AD4170_FS_CONFIG 625 // ODR = 50SPS
37 
38 /* Scaler factor used in FS value to ODR conversion (for SINC3 filter) */
39 #define FS_TO_ODR_CONV_SCALER (512U * AD4170_FS_CONFIG)
40 
41 /* Select continuous conversion mode for thermocouple config */
42 #define AD4170_CONT_CONV_MODE_CONFIG AD4170_MODE_CONT
43 
44 #define TOTAL_CHANNELS 3
45 
46 /******************************************************************************/
47 /********************** Variables and User Defined Data Types *****************/
48 /******************************************************************************/
49 
50 extern struct ad4170_init_param ad4170_thermocouple_config_params;
51 
52 #endif /* end of _AD4170_THERMOCOUPLE_CONFIG_H_ */
struct ad4170_init_param ad4170_thermocouple_config_params
Definition: ad4170_thermocouple_config.c:34