Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ad7172_4_regs.h
00001 /**************************************************************************//** 00002 * @file AD7172_4_regs.h 00003 * @brief AD7172_4 Registers Definitions. 00004 * @author dnechita (dan.nechita@analog.com) 00005 * 00006 ******************************************************************************* 00007 * Copyright 2015(c) Analog Devices, Inc. 00008 * 00009 * All rights reserved. 00010 * 00011 * Redistribution and use in source and binary forms, with or without modification, 00012 * are permitted provided that the following conditions are met: 00013 * - Redistributions of source code must retain the above copyright 00014 * notice, this list of conditions and the following disclaimer. 00015 * - Redistributions in binary form must reproduce the above copyright 00016 * notice, this list of conditions and the following disclaimer in 00017 * the documentation and/or other materials provided with the 00018 * distribution. 00019 * - Neither the name of Analog Devices, Inc. nor the names of its 00020 * contributors may be used to endorse or promote products derived 00021 * from this software without specific prior written permission. 00022 * - The use of this software may or may not infringe the patent rights 00023 * of one or more patent holders. This license does not release you 00024 * from the requirement that you obtain separate licenses from these 00025 * patent holders to use this software. 00026 * - Use of the software either in source or binary form, must be run 00027 * on or directly connected to an Analog Devices Inc. component. 00028 * 00029 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED 00030 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY 00031 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 00032 * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00033 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00034 * INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00035 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00036 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00037 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00038 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00039 ******************************************************************************/ 00040 00041 #ifndef __AD7172_4_REGS_H__ 00042 #define __AD7172_4_REGS_H__ 00043 00044 #include "ad717x.h" 00045 00046 #ifdef AD7172_4_INIT 00047 /*! Array holding the info for the AD7172_4 registers - address, initial value, size */ 00048 ad717x_st_reg ad7172_4_regs[] = { 00049 { AD717X_STATUS_REG, 0x00, 1 }, 00050 { AD717X_ADCMODE_REG, 0x0000, 2 }, 00051 { 00052 AD717X_IFMODE_REG, 00053 AD717X_IFMODE_REG_DOUT_RESET | AD717X_IFMODE_REG_CRC_EN, 00054 2 00055 }, 00056 { AD717X_REGCHECK_REG, 0x0000, 3 }, 00057 { AD717X_DATA_REG, 0x0000, 3 }, 00058 { AD717X_GPIOCON_REG, 0x0000, 2 }, 00059 { AD717X_ID_REG, 0x0000, 2 }, 00060 { 00061 AD717X_CHMAP0_REG, 00062 AD717X_CHMAP_REG_CH_EN | AD717X_CHMAP_REG_AINNEG(2), 00063 2 00064 }, 00065 { AD717X_CHMAP1_REG, 0x0000, 2 }, 00066 { AD717X_CHMAP2_REG, 0x0000, 2 }, 00067 { AD717X_CHMAP3_REG, 0x0000, 2 }, 00068 { AD717X_CHMAP4_REG, 0x0000, 2 }, 00069 { AD717X_CHMAP5_REG, 0x0000, 2 }, 00070 { AD717X_CHMAP6_REG, 0x0000, 2 }, 00071 { AD717X_CHMAP7_REG, 0x0000, 2 }, 00072 { AD717X_SETUPCON0_REG, 0x0000, 2 }, 00073 { AD717X_SETUPCON1_REG, 0x0000, 2 }, 00074 { AD717X_SETUPCON2_REG, 0x0000, 2 }, 00075 { AD717X_SETUPCON3_REG, 0x0000, 2 }, 00076 { AD717X_SETUPCON4_REG, 0x0000, 2 }, 00077 { AD717X_SETUPCON5_REG, 0x0000, 2 }, 00078 { AD717X_SETUPCON6_REG, 0x0000, 2 }, 00079 { AD717X_SETUPCON7_REG, 0x0000, 2 }, 00080 { 00081 AD717X_FILTCON0_REG, 00082 AD717X_FILT_CONF_REG_ENHFILT(2) | AD717X_FILT_CONF_REG_ODR(10), 00083 2 00084 }, 00085 { 00086 AD717X_FILTCON1_REG, 00087 AD717X_FILT_CONF_REG_ENHFILT(2), 00088 2 00089 }, 00090 { 00091 AD717X_FILTCON2_REG, 00092 AD717X_FILT_CONF_REG_ENHFILT(2), 00093 2 00094 }, 00095 { 00096 AD717X_FILTCON3_REG, 00097 AD717X_FILT_CONF_REG_ENHFILT(2), 00098 2 00099 }, 00100 { 00101 AD717X_FILTCON4_REG, 00102 AD717X_FILT_CONF_REG_ENHFILT(2), 00103 2 00104 }, 00105 { 00106 AD717X_FILTCON5_REG, 00107 AD717X_FILT_CONF_REG_ENHFILT(2), 00108 2 00109 }, 00110 { 00111 AD717X_FILTCON6_REG, 00112 AD717X_FILT_CONF_REG_ENHFILT(2), 00113 2 00114 }, 00115 { 00116 AD717X_FILTCON7_REG, 00117 AD717X_FILT_CONF_REG_ENHFILT(2), 00118 2 00119 }, 00120 {AD717X_OFFSET0_REG, 0, 3 }, 00121 {AD717X_OFFSET1_REG, 0, 3 }, 00122 {AD717X_OFFSET2_REG, 0, 3 }, 00123 {AD717X_OFFSET3_REG, 0, 3 }, 00124 {AD717X_OFFSET4_REG, 0, 3 }, 00125 {AD717X_OFFSET5_REG, 0, 3 }, 00126 {AD717X_OFFSET6_REG, 0, 3 }, 00127 {AD717X_OFFSET7_REG, 0, 3 }, 00128 {AD717X_GAIN0_REG, 0, 3 }, 00129 {AD717X_GAIN1_REG, 0, 3 }, 00130 {AD717X_GAIN2_REG, 0, 3 }, 00131 {AD717X_GAIN3_REG, 0, 3 }, 00132 {AD717X_GAIN5_REG, 0, 3 }, 00133 {AD717X_GAIN6_REG, 0, 3 }, 00134 {AD717X_GAIN7_REG, 0, 3 }, 00135 {AD717X_GAIN8_REG, 0, 3 }, 00136 }; 00137 #endif 00138 00139 #define AD7172_4_SLAVE_ID 1 00140 00141 #endif /*__AD7172_4_REGS_H__ */
Generated on Thu Aug 11 2022 00:46:55 by
1.7.2