Example program for EVAL-AD4130
Dependencies: tempsensors sdp_k1_sdram
Diff: app/ad4130_thermistor_config.h
- Revision:
- 2:7b2b268ea49c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/ad4130_thermistor_config.h Wed Jul 20 18:12:00 2022 +0530 @@ -0,0 +1,43 @@ +/*************************************************************************//** + * @file ad4130_thermistor_config.h + * @brief Header for AD4130 thermistors user configuration file +****************************************************************************** +* Copyright (c) 2022 Analog Devices, Inc. +* All rights reserved. +* +* This software is proprietary to Analog Devices, Inc. and its licensors. +* By using this software you agree to the terms of the associated +* Analog Devices Software License Agreement. +*****************************************************************************/ + +#ifndef _AD4130_THERMISTOR_CONFIG_H_ +#define _AD4130_THERMISTOR_CONFIG_H_ + +/******************************************************************************/ +/***************************** Include Files **********************************/ +/******************************************************************************/ + +#include <stdint.h> +#include "ad413x.h" + +/******************************************************************************/ +/********************** Macros and Constants Definition ***********************/ +/******************************************************************************/ + +/* Select FS (or ODR) for thermistor config (applicable to all channels) */ +#define AD4130_FS_CONFIG 48 // ODR = 50SPS for SINC3/4 filter + +/* Filter type for default thermistor config + * Note: Applicable for all setups to keep the same ODR for all channels */ +#define AD4130_FILTER_TYPE AD413X_SYNC3_STANDALONE + +/* Scaler factor used in FS to ODR conversion (For SINC3/4 filter) */ +#define FS_TO_ODR_CONV_SCALER (32U * AD4130_FS_CONFIG) + +/******************************************************************************/ +/********************** Public/Extern Declarations ****************************/ +/******************************************************************************/ + +extern struct ad413x_init_param ad4130_thermistor_config_params; + +#endif /* end of _AD4130_THERMISTOR_CONFIG_H_ */