Mahesh Phalke / AD717x-AD411x
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ad7175_2_regs.h Source File

ad7175_2_regs.h

00001 /**************************************************************************//**
00002 *   @file   AD7175_2_regs.h
00003 *   @brief  AD7175_2 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 __AD7175_2_REGS_H__
00042 #define __AD7175_2_REGS_H__
00043 
00044 #include "ad717x.h"
00045 
00046 #ifdef AD7175_2_INIT
00047 /*! Array holding the info for the AD7175_2 registers - address, initial value, size */
00048 ad717x_st_reg  ad7175_2_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_SETUPCON0_REG, 0x0000, 2 },
00069     { AD717X_SETUPCON1_REG, 0x0000, 2 },
00070     { AD717X_SETUPCON2_REG, 0x0000, 2 },
00071     { AD717X_SETUPCON3_REG, 0x0000, 2 },
00072     {
00073         AD717X_FILTCON0_REG,
00074         AD717X_FILT_CONF_REG_ENHFILT(2) | AD717X_FILT_CONF_REG_ODR(10),
00075         2
00076     },
00077     {
00078         AD717X_FILTCON1_REG,
00079         AD717X_FILT_CONF_REG_ENHFILT(2),
00080         2
00081     },
00082     {
00083         AD717X_FILTCON2_REG,
00084         AD717X_FILT_CONF_REG_ENHFILT(2),
00085         2
00086     },
00087     {
00088         AD717X_FILTCON3_REG,
00089         AD717X_FILT_CONF_REG_ENHFILT(2),
00090         2
00091     },
00092     { AD717X_OFFSET0_REG, 0, 3 },
00093     { AD717X_OFFSET1_REG, 0, 3 },
00094     { AD717X_OFFSET2_REG, 0, 3 },
00095     { AD717X_OFFSET3_REG, 0, 3 },
00096     { AD717X_GAIN0_REG, 0, 3 },
00097     { AD717X_GAIN1_REG, 0, 3 },
00098     { AD717X_GAIN2_REG, 0, 3 },
00099     { AD717X_GAIN3_REG, 0, 3 },
00100 };
00101 #endif
00102 
00103 #define AD7175_2_SLAVE_ID    1
00104 
00105 #endif /*__AD7175_2_REGS_H__ */