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_regs.c
Mahesh Phalke 2:7b2b268ea49c 3 * @brief AD4130 registers map
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 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 14 /***************************** Include Files **********************************/
Mahesh Phalke 2:7b2b268ea49c 15 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 16
Mahesh Phalke 2:7b2b268ea49c 17 #include <stdint.h>
Mahesh Phalke 2:7b2b268ea49c 18
Mahesh Phalke 2:7b2b268ea49c 19 #include "ad413x.h"
Mahesh Phalke 2:7b2b268ea49c 20 #include "ad4130_regs.h"
Mahesh Phalke 2:7b2b268ea49c 21
Mahesh Phalke 2:7b2b268ea49c 22 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 23 /********************** Macros and Constants Definition ***********************/
Mahesh Phalke 2:7b2b268ea49c 24 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 25
Mahesh Phalke 2:7b2b268ea49c 26 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 27 /*************************** Types Declarations *******************************/
Mahesh Phalke 2:7b2b268ea49c 28 /******************************************************************************/
Mahesh Phalke 2:7b2b268ea49c 29
Mahesh Phalke 2:7b2b268ea49c 30 const uint32_t ad413x_regs[] = {
Mahesh Phalke 2:7b2b268ea49c 31 AD413X_REG_STATUS,
Mahesh Phalke 2:7b2b268ea49c 32 AD413X_REG_ADC_CTRL,
Mahesh Phalke 2:7b2b268ea49c 33 AD413X_REG_DATA,
Mahesh Phalke 2:7b2b268ea49c 34 AD413X_REG_IO_CTRL,
Mahesh Phalke 2:7b2b268ea49c 35 AD413X_REG_VBIAS_CTRL,
Mahesh Phalke 2:7b2b268ea49c 36 AD413X_REG_ID,
Mahesh Phalke 2:7b2b268ea49c 37 AD413X_REG_ERROR,
Mahesh Phalke 2:7b2b268ea49c 38 AD413X_REG_ERROR_EN,
Mahesh Phalke 2:7b2b268ea49c 39 AD413X_REG_MCLK_CNT,
Mahesh Phalke 2:7b2b268ea49c 40 AD413X_REG_CHN(0),
Mahesh Phalke 2:7b2b268ea49c 41 AD413X_REG_CHN(1),
Mahesh Phalke 2:7b2b268ea49c 42 AD413X_REG_CHN(2),
Mahesh Phalke 2:7b2b268ea49c 43 AD413X_REG_CHN(3),
Mahesh Phalke 2:7b2b268ea49c 44 AD413X_REG_CHN(4),
Mahesh Phalke 2:7b2b268ea49c 45 AD413X_REG_CHN(5),
Mahesh Phalke 2:7b2b268ea49c 46 AD413X_REG_CHN(6),
Mahesh Phalke 2:7b2b268ea49c 47 AD413X_REG_CHN(7),
Mahesh Phalke 2:7b2b268ea49c 48 AD413X_REG_CHN(8),
Mahesh Phalke 2:7b2b268ea49c 49 AD413X_REG_CHN(9),
Mahesh Phalke 2:7b2b268ea49c 50 AD413X_REG_CHN(10),
Mahesh Phalke 2:7b2b268ea49c 51 AD413X_REG_CHN(11),
Mahesh Phalke 2:7b2b268ea49c 52 AD413X_REG_CHN(12),
Mahesh Phalke 2:7b2b268ea49c 53 AD413X_REG_CHN(13),
Mahesh Phalke 2:7b2b268ea49c 54 AD413X_REG_CHN(14),
Mahesh Phalke 2:7b2b268ea49c 55 AD413X_REG_CHN(15),
Mahesh Phalke 2:7b2b268ea49c 56 AD413X_REG_CONFIG(0),
Mahesh Phalke 2:7b2b268ea49c 57 AD413X_REG_CONFIG(1),
Mahesh Phalke 2:7b2b268ea49c 58 AD413X_REG_CONFIG(2),
Mahesh Phalke 2:7b2b268ea49c 59 AD413X_REG_CONFIG(3),
Mahesh Phalke 2:7b2b268ea49c 60 AD413X_REG_CONFIG(4),
Mahesh Phalke 2:7b2b268ea49c 61 AD413X_REG_CONFIG(5),
Mahesh Phalke 2:7b2b268ea49c 62 AD413X_REG_CONFIG(6),
Mahesh Phalke 2:7b2b268ea49c 63 AD413X_REG_CONFIG(7),
Mahesh Phalke 2:7b2b268ea49c 64 AD413X_REG_FILTER(0),
Mahesh Phalke 2:7b2b268ea49c 65 AD413X_REG_FILTER(1),
Mahesh Phalke 2:7b2b268ea49c 66 AD413X_REG_FILTER(2),
Mahesh Phalke 2:7b2b268ea49c 67 AD413X_REG_FILTER(3),
Mahesh Phalke 2:7b2b268ea49c 68 AD413X_REG_FILTER(4),
Mahesh Phalke 2:7b2b268ea49c 69 AD413X_REG_FILTER(5),
Mahesh Phalke 2:7b2b268ea49c 70 AD413X_REG_FILTER(6),
Mahesh Phalke 2:7b2b268ea49c 71 AD413X_REG_FILTER(7),
Mahesh Phalke 2:7b2b268ea49c 72 AD413X_REG_OFFSET(0),
Mahesh Phalke 2:7b2b268ea49c 73 AD413X_REG_OFFSET(1),
Mahesh Phalke 2:7b2b268ea49c 74 AD413X_REG_OFFSET(2),
Mahesh Phalke 2:7b2b268ea49c 75 AD413X_REG_OFFSET(3),
Mahesh Phalke 2:7b2b268ea49c 76 AD413X_REG_OFFSET(4),
Mahesh Phalke 2:7b2b268ea49c 77 AD413X_REG_OFFSET(5),
Mahesh Phalke 2:7b2b268ea49c 78 AD413X_REG_OFFSET(6),
Mahesh Phalke 2:7b2b268ea49c 79 AD413X_REG_OFFSET(7),
Mahesh Phalke 2:7b2b268ea49c 80 AD413X_REG_GAIN(0),
Mahesh Phalke 2:7b2b268ea49c 81 AD413X_REG_GAIN(1),
Mahesh Phalke 2:7b2b268ea49c 82 AD413X_REG_GAIN(2),
Mahesh Phalke 2:7b2b268ea49c 83 AD413X_REG_GAIN(3),
Mahesh Phalke 2:7b2b268ea49c 84 AD413X_REG_GAIN(4),
Mahesh Phalke 2:7b2b268ea49c 85 AD413X_REG_GAIN(5),
Mahesh Phalke 2:7b2b268ea49c 86 AD413X_REG_GAIN(6),
Mahesh Phalke 2:7b2b268ea49c 87 AD413X_REG_GAIN(7),
Mahesh Phalke 2:7b2b268ea49c 88 AD413X_REG_MISC,
Mahesh Phalke 2:7b2b268ea49c 89 AD413X_REG_FIFO_CTRL,
Mahesh Phalke 2:7b2b268ea49c 90 AD413X_REG_FIFO_STS,
Mahesh Phalke 2:7b2b268ea49c 91 AD413X_REG_FIFO_THRSHLD,
Mahesh Phalke 2:7b2b268ea49c 92 AD413X_REG_FIFO_DATA
Mahesh Phalke 2:7b2b268ea49c 93 };