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.
ad7173_8_regs.h
00001 /**************************************************************************//** 00002 * @file AD7173_8_regs.h 00003 * @brief AD7173_8 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 __AD7173_8_REGS_H__ 00042 #define __AD7173_8_REGS_H__ 00043 00044 #include "ad717x.h" 00045 00046 #ifdef AD7173_8_INIT 00047 /*! Array holding the info for the AD7173_8 registers - address, initial value, size */ 00048 ad717x_st_reg ad7173_8_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_CHMAP8_REG, 0x0000, 2 }, 00073 { AD717X_CHMAP9_REG, 0x0000, 2 }, 00074 { AD717X_CHMAP10_REG, 0x0000, 2 }, 00075 { AD717X_CHMAP11_REG, 0x0000, 2 }, 00076 { AD717X_CHMAP12_REG, 0x0000, 2 }, 00077 { AD717X_CHMAP13_REG, 0x0000, 2 }, 00078 { AD717X_CHMAP14_REG, 0x0000, 2 }, 00079 { AD717X_CHMAP15_REG, 0x0000, 2 }, 00080 { AD717X_SETUPCON0_REG, 0x0000, 2 }, 00081 { AD717X_SETUPCON1_REG, 0x0000, 2 }, 00082 { AD717X_SETUPCON2_REG, 0x0000, 2 }, 00083 { AD717X_SETUPCON3_REG, 0x0000, 2 }, 00084 { AD717X_SETUPCON4_REG, 0x0000, 2 }, 00085 { AD717X_SETUPCON5_REG, 0x0000, 2 }, 00086 { AD717X_SETUPCON6_REG, 0x0000, 2 }, 00087 { AD717X_SETUPCON7_REG, 0x0000, 2 }, 00088 { 00089 AD717X_FILTCON0_REG, 00090 AD717X_FILT_CONF_REG_ENHFILT(2) | AD717X_FILT_CONF_REG_ODR(10), 00091 2 00092 }, 00093 { 00094 AD717X_FILTCON1_REG, 00095 AD717X_FILT_CONF_REG_ENHFILT(2), 00096 2 00097 }, 00098 { 00099 AD717X_FILTCON2_REG, 00100 AD717X_FILT_CONF_REG_ENHFILT(2), 00101 2 00102 }, 00103 { 00104 AD717X_FILTCON3_REG, 00105 AD717X_FILT_CONF_REG_ENHFILT(2), 00106 2 00107 }, 00108 { 00109 AD717X_FILTCON4_REG, 00110 AD717X_FILT_CONF_REG_ENHFILT(2), 00111 2 00112 }, 00113 { 00114 AD717X_FILTCON5_REG, 00115 AD717X_FILT_CONF_REG_ENHFILT(2), 00116 2 00117 }, 00118 { 00119 AD717X_FILTCON6_REG, 00120 AD717X_FILT_CONF_REG_ENHFILT(2), 00121 2 00122 }, 00123 { 00124 AD717X_FILTCON7_REG, 00125 AD717X_FILT_CONF_REG_ENHFILT(2), 00126 2 00127 }, 00128 {AD717X_OFFSET0_REG, 0, 3 }, 00129 {AD717X_OFFSET1_REG, 0, 3 }, 00130 {AD717X_OFFSET2_REG, 0, 3 }, 00131 {AD717X_OFFSET3_REG, 0, 3 }, 00132 {AD717X_OFFSET4_REG, 0, 3 }, 00133 {AD717X_OFFSET5_REG, 0, 3 }, 00134 {AD717X_OFFSET6_REG, 0, 3 }, 00135 {AD717X_OFFSET7_REG, 0, 3 }, 00136 {AD717X_GAIN0_REG, 0, 3 }, 00137 {AD717X_GAIN1_REG, 0, 3 }, 00138 {AD717X_GAIN2_REG, 0, 3 }, 00139 {AD717X_GAIN3_REG, 0, 3 }, 00140 {AD717X_GAIN5_REG, 0, 3 }, 00141 {AD717X_GAIN6_REG, 0, 3 }, 00142 {AD717X_GAIN7_REG, 0, 3 }, 00143 {AD717X_GAIN8_REG, 0, 3 }, 00144 }; 00145 #endif 00146 00147 #define AD7173_8_SLAVE_ID 1 00148 00149 #endif /*__AD7173_8_REGS_H__ */
Generated on Thu Aug 11 2022 00:46:55 by
1.7.2