Example program for EVAL-AD4130

Dependencies:   tempsensors sdp_k1_sdram

Committer:
Mahesh Phalke
Date:
Wed Jul 20 18:12:00 2022 +0530
Revision:
2:7b2b268ea49c
Initial firmware commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mahesh Phalke 2:7b2b268ea49c 1 /*************************************************************************//**
Mahesh Phalke 2:7b2b268ea49c 2 * @file ad4130_thermocouple_config.h
Mahesh Phalke 2:7b2b268ea49c 3 * @brief Header for AD4130 thermocouple user configuration file
Mahesh Phalke 2:7b2b268ea49c 4 ******************************************************************************
Mahesh Phalke 2:7b2b268ea49c 5 * Copyright (c) 2022 Analog Devices, Inc.
Mahesh Phalke 2:7b2b268ea49c 6 * All rights reserved.
Mahesh Phalke 2:7b2b268ea49c 7 *
Mahesh Phalke 2:7b2b268ea49c 8 * This software is proprietary to Analog Devices, Inc. and its licensors.
Mahesh Phalke 2:7b2b268ea49c 9 * By using this software you agree to the terms of the associated
Mahesh Phalke 2:7b2b268ea49c 10 * Analog Devices Software License Agreement.
Mahesh Phalke 2:7b2b268ea49c 11 *****************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 12
Mahesh Phalke 2:7b2b268ea49c 13 #ifndef _AD4130_THERMOCOUPLE_CONFIG_H_
Mahesh Phalke 2:7b2b268ea49c 14 #define _AD4130_THERMOCOUPLE_CONFIG_H_
Mahesh Phalke 2:7b2b268ea49c 15
Mahesh Phalke 2:7b2b268ea49c 16 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 17 /***************************** Include Files **********************************/
Mahesh Phalke 2:7b2b268ea49c 18 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 19
Mahesh Phalke 2:7b2b268ea49c 20 #include <stdint.h>
Mahesh Phalke 2:7b2b268ea49c 21 #include "ad413x.h"
Mahesh Phalke 2:7b2b268ea49c 22
Mahesh Phalke 2:7b2b268ea49c 23 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 24 /********************** Macros and Constants Definition ***********************/
Mahesh Phalke 2:7b2b268ea49c 25 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 26
Mahesh Phalke 2:7b2b268ea49c 27 /* Select the Cold Junction Compensation (CJC) sensor type for TC measurement */
Mahesh Phalke 2:7b2b268ea49c 28 #define USE_CJC_AS_RTD
Mahesh Phalke 2:7b2b268ea49c 29 //#define USE_CJC_AS_THERMISTOR
Mahesh Phalke 2:7b2b268ea49c 30
Mahesh Phalke 2:7b2b268ea49c 31 /* Select FS (or ODR) for thermocouple config (applicable to all channels) */
Mahesh Phalke 2:7b2b268ea49c 32 #define AD4130_FS_CONFIG 48 // ODR = 50SPS for SINC3/4 filter
Mahesh Phalke 2:7b2b268ea49c 33
Mahesh Phalke 2:7b2b268ea49c 34 /* Filter type for default thermocouple config
Mahesh Phalke 2:7b2b268ea49c 35 * Note: Applicable for all setups to keep the same ODR for all channels */
Mahesh Phalke 2:7b2b268ea49c 36 #define AD4130_FILTER_TYPE AD413X_SYNC3_STANDALONE
Mahesh Phalke 2:7b2b268ea49c 37
Mahesh Phalke 2:7b2b268ea49c 38 /* Scaler factor used in FS to ODR conversion (For SINC3/4 filter) */
Mahesh Phalke 2:7b2b268ea49c 39 #define FS_TO_ODR_CONV_SCALER (32U * AD4130_FS_CONFIG)
Mahesh Phalke 2:7b2b268ea49c 40
Mahesh Phalke 2:7b2b268ea49c 41 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 42 /********************** Public/Extern Declarations ****************************/
Mahesh Phalke 2:7b2b268ea49c 43 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 44
Mahesh Phalke 2:7b2b268ea49c 45 extern struct ad413x_init_param ad4130_thermocouple_config_params;
Mahesh Phalke 2:7b2b268ea49c 46
Mahesh Phalke 2:7b2b268ea49c 47 #endif /* end of _AD4130_THERMOCOUPLE_CONFIG_H_ */