Library files for AD717x and AD411x family of products.

Dependents:  

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 AD7176_2_regs.h
mahphalke 1:1d54b9448386 3 * @brief AD7176_2 Registers Definitions.
mahphalke 1:1d54b9448386 4 * @author acozma (andrei.cozma@analog.com)
mahphalke 1:1d54b9448386 5 * dnechita (dan.nechita@analog.com)
mahphalke 1:1d54b9448386 6 *
mahphalke 1:1d54b9448386 7 *******************************************************************************
mahphalke 1:1d54b9448386 8 * Copyright 2015(c) Analog Devices, Inc.
mahphalke 1:1d54b9448386 9 *
mahphalke 1:1d54b9448386 10 * All rights reserved.
mahphalke 1:1d54b9448386 11 *
mahphalke 1:1d54b9448386 12 * Redistribution and use in source and binary forms, with or without modification,
mahphalke 1:1d54b9448386 13 * are permitted provided that the following conditions are met:
mahphalke 1:1d54b9448386 14 * - Redistributions of source code must retain the above copyright
mahphalke 1:1d54b9448386 15 * notice, this list of conditions and the following disclaimer.
mahphalke 1:1d54b9448386 16 * - Redistributions in binary form must reproduce the above copyright
mahphalke 1:1d54b9448386 17 * notice, this list of conditions and the following disclaimer in
mahphalke 1:1d54b9448386 18 * the documentation and/or other materials provided with the
mahphalke 1:1d54b9448386 19 * distribution.
mahphalke 1:1d54b9448386 20 * - Neither the name of Analog Devices, Inc. nor the names of its
mahphalke 1:1d54b9448386 21 * contributors may be used to endorse or promote products derived
mahphalke 1:1d54b9448386 22 * from this software without specific prior written permission.
mahphalke 1:1d54b9448386 23 * - The use of this software may or may not infringe the patent rights
mahphalke 1:1d54b9448386 24 * of one or more patent holders. This license does not release you
mahphalke 1:1d54b9448386 25 * from the requirement that you obtain separate licenses from these
mahphalke 1:1d54b9448386 26 * patent holders to use this software.
mahphalke 1:1d54b9448386 27 * - Use of the software either in source or binary form, must be run
mahphalke 1:1d54b9448386 28 * on or directly connected to an Analog Devices Inc. component.
mahphalke 1:1d54b9448386 29 *
mahphalke 1:1d54b9448386 30 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED
mahphalke 1:1d54b9448386 31 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY
mahphalke 1:1d54b9448386 32 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
mahphalke 1:1d54b9448386 33 * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
mahphalke 1:1d54b9448386 34 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
mahphalke 1:1d54b9448386 35 * INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
mahphalke 1:1d54b9448386 36 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
mahphalke 1:1d54b9448386 37 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
mahphalke 1:1d54b9448386 38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
mahphalke 1:1d54b9448386 39 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mahphalke 1:1d54b9448386 40 ******************************************************************************/
mahphalke 1:1d54b9448386 41
mahphalke 1:1d54b9448386 42 #ifndef __AD7176_2_REGS_H__
mahphalke 1:1d54b9448386 43 #define __AD7176_2_REGS_H__
mahphalke 1:1d54b9448386 44
mahphalke 1:1d54b9448386 45 #include "ad717x.h"
mahphalke 1:1d54b9448386 46
mahphalke 1:1d54b9448386 47 #ifdef AD7176_2_INIT
mahphalke 1:1d54b9448386 48 /*! Array holding the info for the AD7176_2 registers - address, initial value, size */
mahphalke 1:1d54b9448386 49 ad717x_st_reg ad7176_2_regs[] = {
mahphalke 1:1d54b9448386 50 { AD717X_STATUS_REG, 0x00, 1 },
mahphalke 1:1d54b9448386 51 { AD717X_ADCMODE_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 52 {
mahphalke 1:1d54b9448386 53 AD717X_IFMODE_REG,
mahphalke 1:1d54b9448386 54 AD717X_IFMODE_REG_DOUT_RESET | AD717X_IFMODE_REG_CRC_EN,
mahphalke 1:1d54b9448386 55 2
mahphalke 1:1d54b9448386 56 },
mahphalke 1:1d54b9448386 57 { AD717X_REGCHECK_REG, 0x0000, 3 },
mahphalke 1:1d54b9448386 58 { AD717X_DATA_REG, 0x0000, 3 },
mahphalke 1:1d54b9448386 59 { AD717X_GPIOCON_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 60 { AD717X_ID_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 61 {
mahphalke 1:1d54b9448386 62 AD717X_CHMAP0_REG,
mahphalke 1:1d54b9448386 63 AD717X_CHMAP_REG_CH_EN | AD717X_CHMAP_REG_AINNEG(2),
mahphalke 1:1d54b9448386 64 2
mahphalke 1:1d54b9448386 65 },
mahphalke 1:1d54b9448386 66 { AD717X_CHMAP1_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 67 { AD717X_CHMAP2_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 68 { AD717X_CHMAP3_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 69 { AD717X_SETUPCON0_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 70 { AD717X_SETUPCON1_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 71 { AD717X_SETUPCON2_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 72 { AD717X_SETUPCON3_REG, 0x0000, 2 },
mahphalke 1:1d54b9448386 73 {
mahphalke 1:1d54b9448386 74 AD717X_FILTCON0_REG,
mahphalke 1:1d54b9448386 75 AD717X_FILT_CONF_REG_ENHFILT(2) | AD717X_FILT_CONF_REG_ODR(10),
mahphalke 1:1d54b9448386 76 2
mahphalke 1:1d54b9448386 77 },
mahphalke 1:1d54b9448386 78 {
mahphalke 1:1d54b9448386 79 AD717X_FILTCON1_REG,
mahphalke 1:1d54b9448386 80 AD717X_FILT_CONF_REG_ENHFILT(2),
mahphalke 1:1d54b9448386 81 2
mahphalke 1:1d54b9448386 82 },
mahphalke 1:1d54b9448386 83 {
mahphalke 1:1d54b9448386 84 AD717X_FILTCON2_REG,
mahphalke 1:1d54b9448386 85 AD717X_FILT_CONF_REG_ENHFILT(2),
mahphalke 1:1d54b9448386 86 2
mahphalke 1:1d54b9448386 87 },
mahphalke 1:1d54b9448386 88 {
mahphalke 1:1d54b9448386 89 AD717X_FILTCON3_REG,
mahphalke 1:1d54b9448386 90 AD717X_FILT_CONF_REG_ENHFILT(2),
mahphalke 1:1d54b9448386 91 2
mahphalke 1:1d54b9448386 92 },
mahphalke 1:1d54b9448386 93 { AD717X_OFFSET0_REG, 0, 3 },
mahphalke 1:1d54b9448386 94 { AD717X_OFFSET1_REG, 0, 3 },
mahphalke 1:1d54b9448386 95 { AD717X_OFFSET2_REG, 0, 3 },
mahphalke 1:1d54b9448386 96 { AD717X_OFFSET3_REG, 0, 3 },
mahphalke 1:1d54b9448386 97 { AD717X_GAIN0_REG, 0, 3 },
mahphalke 1:1d54b9448386 98 { AD717X_GAIN1_REG, 0, 3 },
mahphalke 1:1d54b9448386 99 { AD717X_GAIN2_REG, 0, 3 },
mahphalke 1:1d54b9448386 100 { AD717X_GAIN3_REG, 0, 3 },
mahphalke 1:1d54b9448386 101 };
mahphalke 1:1d54b9448386 102 #endif
mahphalke 1:1d54b9448386 103
mahphalke 1:1d54b9448386 104 #define AD7176_2_SLAVE_ID 1
mahphalke 1:1d54b9448386 105
mahphalke 1:1d54b9448386 106 #endif /*__AD7176_2_REGS_H__ */