ad7124_regs.c 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /***************************************************************************//**
  2. * @file ad7124_regs.c
  3. * @brief AD7124 register file.
  4. * Devices: AD7124-4, AD7124-8
  5. *
  6. ********************************************************************************
  7. * Copyright 2015-2019(c) Analog Devices, Inc.
  8. *
  9. * All rights reserved.
  10. *
  11. * Redistribution and use in source and binary forms, with or without modification,
  12. * are permitted provided that the following conditions are met:
  13. * - Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. * - Redistributions in binary form must reproduce the above copyright
  16. * notice, this list of conditions and the following disclaimer in
  17. * the documentation and/or other materials provided with the
  18. * distribution.
  19. * - Neither the name of Analog Devices, Inc. nor the names of its
  20. * contributors may be used to endorse or promote products derived
  21. * from this software without specific prior written permission.
  22. * - The use of this software may or may not infringe the patent rights
  23. * of one or more patent holders. This license does not release you
  24. * from the requirement that you obtain separate licenses from these
  25. * patent holders to use this software.
  26. * - Use of the software either in source or binary form, must be run
  27. * on or directly connected to an Analog Devices Inc. component.
  28. *
  29. * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED
  30. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY
  31. * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  32. * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  33. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  34. * INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  35. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  36. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  37. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  38. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. *******************************************************************************/
  40. #include "ad7124_regs.h"
  41. struct ad7124_st_reg ad7124_regs[AD7124_REG_NO] = {
  42. {0x00, 0x00, 1, 2}, /* AD7124_Status */
  43. {0x01, 0x0000, 2, 1}, /* AD7124_ADC_Control */
  44. {0x02, 0x0000, 3, 2}, /* AD7124_Data */
  45. {0x03, 0x0000, 3, 1}, /* AD7124_IOCon1 */
  46. {0x04, 0x0000, 2, 1}, /* AD7124_IOCon2 */
  47. {0x05, 0x02, 1, 2}, /* AD7124_ID */
  48. {0x06, 0x0000, 3, 2}, /* AD7124_Error */
  49. {0x07, 0x0040, 3, 1}, /* AD7124_Error_En */
  50. {0x08, 0x00, 1, 2}, /* AD7124_Mclk_Count */
  51. {0x09, 0x8001, 2, 1}, /* AD7124_Channel_0 */
  52. {0x0A, 0x0001, 2, 1}, /* AD7124_Channel_1 */
  53. {0x0B, 0x0001, 2, 1}, /* AD7124_Channel_2 */
  54. {0x0C, 0x0001, 2, 1}, /* AD7124_Channel_3 */
  55. {0x0D, 0x0001, 2, 1}, /* AD7124_Channel_4 */
  56. {0x0E, 0x0001, 2, 1}, /* AD7124_Channel_5 */
  57. {0x0F, 0x0001, 2, 1}, /* AD7124_Channel_6 */
  58. {0x10, 0x0001, 2, 1}, /* AD7124_Channel_7 */
  59. {0x11, 0x0001, 2, 1}, /* AD7124_Channel_8 */
  60. {0x12, 0x0001, 2, 1}, /* AD7124_Channel_9 */
  61. {0x13, 0x0001, 2, 1}, /* AD7124_Channel_10 */
  62. {0x14, 0x0001, 2, 1}, /* AD7124_Channel_11 */
  63. {0x15, 0x0001, 2, 1}, /* AD7124_Channel_12 */
  64. {0x16, 0x0001, 2, 1}, /* AD7124_Channel_13 */
  65. {0x17, 0x0001, 2, 1}, /* AD7124_Channel_14 */
  66. {0x18, 0x0001, 2, 1}, /* AD7124_Channel_15 */
  67. {0x19, 0x0860, 2, 1}, /* AD7124_Config_0 */
  68. {0x1A, 0x0860, 2, 1}, /* AD7124_Config_1 */
  69. {0x1B, 0x0860, 2, 1}, /* AD7124_Config_2 */
  70. {0x1C, 0x0860, 2, 1}, /* AD7124_Config_3 */
  71. {0x1D, 0x0860, 2, 1}, /* AD7124_Config_4 */
  72. {0x1E, 0x0860, 2, 1}, /* AD7124_Config_5 */
  73. {0x1F, 0x0860, 2, 1}, /* AD7124_Config_6 */
  74. {0x20, 0x0860, 2, 1}, /* AD7124_Config_7 */
  75. {0x21, 0x060180, 3, 1}, /* AD7124_Filter_0 */
  76. {0x22, 0x060180, 3, 1}, /* AD7124_Filter_1 */
  77. {0x23, 0x060180, 3, 1}, /* AD7124_Filter_2 */
  78. {0x24, 0x060180, 3, 1}, /* AD7124_Filter_3 */
  79. {0x25, 0x060180, 3, 1}, /* AD7124_Filter_4 */
  80. {0x26, 0x060180, 3, 1}, /* AD7124_Filter_5 */
  81. {0x27, 0x060180, 3, 1}, /* AD7124_Filter_6 */
  82. {0x28, 0x060180, 3, 1}, /* AD7124_Filter_7 */
  83. {0x29, 0x800000, 3, 1}, /* AD7124_Offset_0 */
  84. {0x2A, 0x800000, 3, 1}, /* AD7124_Offset_1 */
  85. {0x2B, 0x800000, 3, 1}, /* AD7124_Offset_2 */
  86. {0x2C, 0x800000, 3, 1}, /* AD7124_Offset_3 */
  87. {0x2D, 0x800000, 3, 1}, /* AD7124_Offset_4 */
  88. {0x2E, 0x800000, 3, 1}, /* AD7124_Offset_5 */
  89. {0x2F, 0x800000, 3, 1}, /* AD7124_Offset_6 */
  90. {0x30, 0x800000, 3, 1}, /* AD7124_Offset_7 */
  91. {0x31, 0x500000, 3, 1}, /* AD7124_Gain_0 */
  92. {0x32, 0x500000, 3, 1}, /* AD7124_Gain_1 */
  93. {0x33, 0x500000, 3, 1}, /* AD7124_Gain_2 */
  94. {0x34, 0x500000, 3, 1}, /* AD7124_Gain_3 */
  95. {0x35, 0x500000, 3, 1}, /* AD7124_Gain_4 */
  96. {0x36, 0x500000, 3, 1}, /* AD7124_Gain_5 */
  97. {0x37, 0x500000, 3, 1}, /* AD7124_Gain_6 */
  98. {0x38, 0x500000, 3, 1}, /* AD7124_Gain_7 */
  99. };