Mahesh Phalke / AD717x-AD411x
Committer:
mahphalke
Date:
Mon Aug 03 09:18:41 2020 +0000
Revision:
2:0780c234e572
Parent:
1:1d54b9448386
Added no-os driver support for AD4114/15 devices

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mahphalke 1:1d54b9448386 1 /***************************************************************************//**
mahphalke 1:1d54b9448386 2 * @file ad411x_regs.h
mahphalke 1:1d54b9448386 3 * @brief ad4111 Registers Definitions.
mahphalke 1:1d54b9448386 4 * @author Andrei Drimbarean (andrei.drimbarean@analog.com)
mahphalke 1:1d54b9448386 5 ********************************************************************************
mahphalke 1:1d54b9448386 6 * Copyright 2018(c) Analog Devices, Inc.
mahphalke 1:1d54b9448386 7 *
mahphalke 1:1d54b9448386 8 * All rights reserved.
mahphalke 1:1d54b9448386 9 *
mahphalke 1:1d54b9448386 10 * Redistribution and use in source and binary forms, with or without
mahphalke 1:1d54b9448386 11 * modification, are permitted provided that the following conditions are met:
mahphalke 1:1d54b9448386 12 * - Redistributions of source code must retain the above copyright
mahphalke 1:1d54b9448386 13 * notice, this list of conditions and the following disclaimer.
mahphalke 1:1d54b9448386 14 * - Redistributions in binary form must reproduce the above copyright
mahphalke 1:1d54b9448386 15 * notice, this list of conditions and the following disclaimer in
mahphalke 1:1d54b9448386 16 * the documentation and/or other materials provided with the
mahphalke 1:1d54b9448386 17 * distribution.
mahphalke 1:1d54b9448386 18 * - Neither the name of Analog Devices, Inc. nor the names of its
mahphalke 1:1d54b9448386 19 * contributors may be used to endorse or promote products derived
mahphalke 1:1d54b9448386 20 * from this software without specific prior written permission.
mahphalke 1:1d54b9448386 21 * - The use of this software may or may not infringe the patent rights
mahphalke 1:1d54b9448386 22 * of one or more patent holders. This license does not release you
mahphalke 1:1d54b9448386 23 * from the requirement that you obtain separate licenses from these
mahphalke 1:1d54b9448386 24 * patent holders to use this software.
mahphalke 1:1d54b9448386 25 * - Use of the software either in source or binary form, must be run
mahphalke 1:1d54b9448386 26 * on or directly connected to an Analog Devices Inc. component.
mahphalke 1:1d54b9448386 27 *
mahphalke 1:1d54b9448386 28 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED
mahphalke 1:1d54b9448386 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY
mahphalke 1:1d54b9448386 30 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
mahphalke 1:1d54b9448386 31 * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
mahphalke 1:1d54b9448386 32 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
mahphalke 1:1d54b9448386 33 * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
mahphalke 1:1d54b9448386 34 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mahphalke 1:1d54b9448386 35 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mahphalke 1:1d54b9448386 36 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mahphalke 1:1d54b9448386 37 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mahphalke 1:1d54b9448386 38 ******************************************************************************/
mahphalke 1:1d54b9448386 39
mahphalke 1:1d54b9448386 40 #ifndef AD4111_CFG_H_
mahphalke 1:1d54b9448386 41 #define AD4111_CFG_H_
mahphalke 1:1d54b9448386 42
mahphalke 1:1d54b9448386 43 #include "ad717x.h"
mahphalke 1:1d54b9448386 44
mahphalke 1:1d54b9448386 45 ad717x_st_reg ad4111_regs[] = {
mahphalke 1:1d54b9448386 46 { AD717X_STATUS_REG, 0x00, 1 },
mahphalke 1:1d54b9448386 47 {
mahphalke 1:1d54b9448386 48 AD717X_ADCMODE_REG,
mahphalke 1:1d54b9448386 49 AD717X_ADCMODE_REG_MODE(0),
mahphalke 1:1d54b9448386 50 2
mahphalke 1:1d54b9448386 51 },
mahphalke 1:1d54b9448386 52 { AD717X_IFMODE_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 53 { AD717X_REGCHECK_REG, 0x0000, 3 },
mahphalke 1:1d54b9448386 54 { AD717X_DATA_REG, 0x0000, 3 },
mahphalke 1:1d54b9448386 55 {
mahphalke 1:1d54b9448386 56 AD717X_GPIOCON_REG,
mahphalke 1:1d54b9448386 57 AD717X_GPIOCON_REG_SYNC_EN,
mahphalke 1:1d54b9448386 58 2
mahphalke 1:1d54b9448386 59 },
mahphalke 1:1d54b9448386 60 { AD717X_ID_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 61 { AD717X_CHMAP0_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 62 { AD717X_CHMAP1_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 63 { AD717X_CHMAP2_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 64 { AD717X_CHMAP3_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 65 { AD717X_CHMAP4_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 66 { AD717X_CHMAP5_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 67 { AD717X_CHMAP6_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 68 { AD717X_CHMAP7_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 69 { AD717X_CHMAP8_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 70 { AD717X_CHMAP9_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 71 { AD717X_CHMAP10_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 72 { AD717X_CHMAP11_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 73 { AD717X_CHMAP12_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 74 { AD717X_CHMAP13_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 75 { AD717X_CHMAP14_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 76 { AD717X_CHMAP15_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 77 { AD717X_SETUPCON0_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 78 { AD717X_SETUPCON1_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 79 { AD717X_SETUPCON2_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 80 { AD717X_SETUPCON3_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 81 { AD717X_SETUPCON4_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 82 { AD717X_SETUPCON5_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 83 { AD717X_SETUPCON6_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 84 { AD717X_SETUPCON7_REG, 0x0000 | AD717X_SETUP_CONF_REG_REF_SEL(2), 2 },
mahphalke 1:1d54b9448386 85 {
mahphalke 1:1d54b9448386 86 AD717X_FILTCON0_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 87 },
mahphalke 1:1d54b9448386 88 {
mahphalke 1:1d54b9448386 89 AD717X_FILTCON1_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 90 },
mahphalke 1:1d54b9448386 91 {
mahphalke 1:1d54b9448386 92 AD717X_FILTCON2_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 93 },
mahphalke 1:1d54b9448386 94 {
mahphalke 1:1d54b9448386 95 AD717X_FILTCON3_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 96 },
mahphalke 1:1d54b9448386 97 {
mahphalke 1:1d54b9448386 98 AD717X_FILTCON4_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 99 },
mahphalke 1:1d54b9448386 100 {
mahphalke 1:1d54b9448386 101 AD717X_FILTCON5_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 102 },
mahphalke 1:1d54b9448386 103 {
mahphalke 1:1d54b9448386 104 AD717X_FILTCON6_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 105 },
mahphalke 1:1d54b9448386 106 {
mahphalke 1:1d54b9448386 107 AD717X_FILTCON7_REG, AD717X_FILT_CONF_REG_ENHFILT(2), 2
mahphalke 1:1d54b9448386 108 },
mahphalke 1:1d54b9448386 109 {AD717X_OFFSET0_REG, 0, 3 },
mahphalke 1:1d54b9448386 110 {AD717X_OFFSET1_REG, 0, 3 },
mahphalke 1:1d54b9448386 111 {AD717X_OFFSET2_REG, 0, 3 },
mahphalke 1:1d54b9448386 112 {AD717X_OFFSET3_REG, 0, 3 },
mahphalke 1:1d54b9448386 113 {AD717X_OFFSET4_REG, 0, 3 },
mahphalke 1:1d54b9448386 114 {AD717X_OFFSET5_REG, 0, 3 },
mahphalke 1:1d54b9448386 115 {AD717X_OFFSET6_REG, 0, 3 },
mahphalke 1:1d54b9448386 116 {AD717X_OFFSET7_REG, 0, 3 },
mahphalke 1:1d54b9448386 117 {AD717X_GAIN0_REG, 0, 3 },
mahphalke 1:1d54b9448386 118 {AD717X_GAIN1_REG, 0, 3 },
mahphalke 1:1d54b9448386 119 {AD717X_GAIN2_REG, 0, 3 },
mahphalke 1:1d54b9448386 120 {AD717X_GAIN3_REG, 0, 3 },
mahphalke 1:1d54b9448386 121 {AD717X_GAIN4_REG, 0, 3 },
mahphalke 1:1d54b9448386 122 {AD717X_GAIN5_REG, 0, 3 },
mahphalke 1:1d54b9448386 123 {AD717X_GAIN6_REG, 0, 3 },
mahphalke 1:1d54b9448386 124 {AD717X_GAIN7_REG, 0, 3 },
mahphalke 1:1d54b9448386 125 };
mahphalke 1:1d54b9448386 126
mahphalke 1:1d54b9448386 127 #endif /* AD4111_CFG_H_ */