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.
ad7176_2_regs.h
00001 /**************************************************************************//** 00002 * @file AD7176_2_regs.h 00003 * @brief AD7176_2 Registers Definitions. 00004 * @author acozma (andrei.cozma@analog.com) 00005 * dnechita (dan.nechita@analog.com) 00006 * 00007 ******************************************************************************* 00008 * Copyright 2015(c) Analog Devices, Inc. 00009 * 00010 * All rights reserved. 00011 * 00012 * Redistribution and use in source and binary forms, with or without modification, 00013 * are permitted provided that the following conditions are met: 00014 * - Redistributions of source code must retain the above copyright 00015 * notice, this list of conditions and the following disclaimer. 00016 * - Redistributions in binary form must reproduce the above copyright 00017 * notice, this list of conditions and the following disclaimer in 00018 * the documentation and/or other materials provided with the 00019 * distribution. 00020 * - Neither the name of Analog Devices, Inc. nor the names of its 00021 * contributors may be used to endorse or promote products derived 00022 * from this software without specific prior written permission. 00023 * - The use of this software may or may not infringe the patent rights 00024 * of one or more patent holders. This license does not release you 00025 * from the requirement that you obtain separate licenses from these 00026 * patent holders to use this software. 00027 * - Use of the software either in source or binary form, must be run 00028 * on or directly connected to an Analog Devices Inc. component. 00029 * 00030 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED 00031 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY 00032 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 00033 * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00034 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00035 * INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00036 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00037 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00038 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00039 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00040 ******************************************************************************/ 00041 00042 #ifndef __AD7176_2_REGS_H__ 00043 #define __AD7176_2_REGS_H__ 00044 00045 #include "ad717x.h" 00046 00047 #ifdef AD7176_2_INIT 00048 /*! Array holding the info for the AD7176_2 registers - address, initial value, size */ 00049 ad717x_st_reg ad7176_2_regs[] = { 00050 { AD717X_STATUS_REG, 0x00, 1 }, 00051 { AD717X_ADCMODE_REG, 0x0000, 2 }, 00052 { 00053 AD717X_IFMODE_REG, 00054 AD717X_IFMODE_REG_DOUT_RESET | AD717X_IFMODE_REG_CRC_EN, 00055 2 00056 }, 00057 { AD717X_REGCHECK_REG, 0x0000, 3 }, 00058 { AD717X_DATA_REG, 0x0000, 3 }, 00059 { AD717X_GPIOCON_REG, 0x0000, 2 }, 00060 { AD717X_ID_REG, 0x0000, 2 }, 00061 { 00062 AD717X_CHMAP0_REG, 00063 AD717X_CHMAP_REG_CH_EN | AD717X_CHMAP_REG_AINNEG(2), 00064 2 00065 }, 00066 { AD717X_CHMAP1_REG, 0x0000, 2 }, 00067 { AD717X_CHMAP2_REG, 0x0000, 2 }, 00068 { AD717X_CHMAP3_REG, 0x0000, 2 }, 00069 { AD717X_SETUPCON0_REG, 0x0000, 2 }, 00070 { AD717X_SETUPCON1_REG, 0x0000, 2 }, 00071 { AD717X_SETUPCON2_REG, 0x0000, 2 }, 00072 { AD717X_SETUPCON3_REG, 0x0000, 2 }, 00073 { 00074 AD717X_FILTCON0_REG, 00075 AD717X_FILT_CONF_REG_ENHFILT(2) | AD717X_FILT_CONF_REG_ODR(10), 00076 2 00077 }, 00078 { 00079 AD717X_FILTCON1_REG, 00080 AD717X_FILT_CONF_REG_ENHFILT(2), 00081 2 00082 }, 00083 { 00084 AD717X_FILTCON2_REG, 00085 AD717X_FILT_CONF_REG_ENHFILT(2), 00086 2 00087 }, 00088 { 00089 AD717X_FILTCON3_REG, 00090 AD717X_FILT_CONF_REG_ENHFILT(2), 00091 2 00092 }, 00093 { AD717X_OFFSET0_REG, 0, 3 }, 00094 { AD717X_OFFSET1_REG, 0, 3 }, 00095 { AD717X_OFFSET2_REG, 0, 3 }, 00096 { AD717X_OFFSET3_REG, 0, 3 }, 00097 { AD717X_GAIN0_REG, 0, 3 }, 00098 { AD717X_GAIN1_REG, 0, 3 }, 00099 { AD717X_GAIN2_REG, 0, 3 }, 00100 { AD717X_GAIN3_REG, 0, 3 }, 00101 }; 00102 #endif 00103 00104 #define AD7176_2_SLAVE_ID 1 00105 00106 #endif /*__AD7176_2_REGS_H__ */
Generated on Fri Jul 15 2022 18:47:41 by
1.7.2