IIO firmware for the AD4110

Dependencies:   tempsensors sdp_k1_sdram

Committer:
Janani Sunil
Date:
Wed Jul 27 17:04:15 2022 +0530
Revision:
0:6ca37a8f8ba9
Initial implementation for AD4110 IIO Firmware

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Janani Sunil 0:6ca37a8f8ba9 1 /*************************************************************************//**
Janani Sunil 0:6ca37a8f8ba9 2 * @file ad4110_rtd_mode_config.h
Janani Sunil 0:6ca37a8f8ba9 3 * @brief RTD Mode Configuration for AD4110 IIO Application
Janani Sunil 0:6ca37a8f8ba9 4 ******************************************************************************
Janani Sunil 0:6ca37a8f8ba9 5 * Copyright (c) 2022 Analog Devices, Inc.
Janani Sunil 0:6ca37a8f8ba9 6 *
Janani Sunil 0:6ca37a8f8ba9 7 * All rights reserved.
Janani Sunil 0:6ca37a8f8ba9 8 *
Janani Sunil 0:6ca37a8f8ba9 9 * This software is proprietary to Analog Devices, Inc. and its licensors.
Janani Sunil 0:6ca37a8f8ba9 10 * By using this software you agree to the terms of the associated
Janani Sunil 0:6ca37a8f8ba9 11 * Analog Devices Software License Agreement.
Janani Sunil 0:6ca37a8f8ba9 12 *****************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 13
Janani Sunil 0:6ca37a8f8ba9 14 #ifndef AD4110_RTD_MODE_CONFIG_H_
Janani Sunil 0:6ca37a8f8ba9 15 #define AD4110_RTD_MODE_CONFIG_H_
Janani Sunil 0:6ca37a8f8ba9 16
Janani Sunil 0:6ca37a8f8ba9 17 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 18 /***************************** Include Files **********************************/
Janani Sunil 0:6ca37a8f8ba9 19 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 20
Janani Sunil 0:6ca37a8f8ba9 21 #include "ad4110.h"
Janani Sunil 0:6ca37a8f8ba9 22
Janani Sunil 0:6ca37a8f8ba9 23 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 24 /********************** Macros and Constants Definition ***********************/
Janani Sunil 0:6ca37a8f8ba9 25 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 26
Janani Sunil 0:6ca37a8f8ba9 27 /* RTD Mode Configurarion. Uncomment any one mode to select the
Janani Sunil 0:6ca37a8f8ba9 28 * Mode of operation. Default is 2-wire*/
Janani Sunil 0:6ca37a8f8ba9 29 #define RTD_2WIRE_CONFIG
Janani Sunil 0:6ca37a8f8ba9 30 // #define RTD_3WIRE_CONFIG
Janani Sunil 0:6ca37a8f8ba9 31 // #define RTD_4WIRE_CONFIG
Janani Sunil 0:6ca37a8f8ba9 32
Janani Sunil 0:6ca37a8f8ba9 33 /* Note: AD4110_DEFAULT_PGA value is applied during calculation of actual quantity
Janani Sunil 0:6ca37a8f8ba9 34 * from the ADC raw value. GAIN_CH holds the value of the bitfield needed while
Janani Sunil 0:6ca37a8f8ba9 35 * configuring the gain in the device during initialization. It has to be ensured
Janani Sunil 0:6ca37a8f8ba9 36 * that these values are in match with each other */
Janani Sunil 0:6ca37a8f8ba9 37 #define AD4110_DEFAULT_PGA 8
Janani Sunil 0:6ca37a8f8ba9 38 #define GAIN_CH AD4110_GAIN_8
Janani Sunil 0:6ca37a8f8ba9 39
Janani Sunil 0:6ca37a8f8ba9 40 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 41 /********************** Variables and User Defined Data Types *****************/
Janani Sunil 0:6ca37a8f8ba9 42 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 43
Janani Sunil 0:6ca37a8f8ba9 44 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 45 /************************ Public Declarations *********************************/
Janani Sunil 0:6ca37a8f8ba9 46 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 47
Janani Sunil 0:6ca37a8f8ba9 48 extern struct ad4110_init_param ad4110_rtd_mode_init_params;
Janani Sunil 0:6ca37a8f8ba9 49
Janani Sunil 0:6ca37a8f8ba9 50 #endif // AD4110_RTD_MODE_CONFIG_H_
Janani Sunil 0:6ca37a8f8ba9 51