AD7124 Example Program

Dependencies:   platform_drivers AD7124_no_OS

Committer:
MitchAD
Date:
Thu Sep 05 20:50:43 2019 +0000
Revision:
2:0897873979f3
Initial commit for the AD7124 Example Program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MitchAD 2:0897873979f3 1 #include "ad7124_regs_configs.h"
MitchAD 2:0897873979f3 2
MitchAD 2:0897873979f3 3 struct ad7124_st_reg ad7124_regs_default[AD7124_REG_NO] = {
MitchAD 2:0897873979f3 4 {0x00, 0x00, 1, 2}, /* AD7124_Status */
MitchAD 2:0897873979f3 5 {0x01, 0x0100, 2, 1}, /* AD7124_ADC_Control */
MitchAD 2:0897873979f3 6 {0x02, 0x0000, 3, 2}, /* AD7124_Data */
MitchAD 2:0897873979f3 7 {0x03, 0x0000, 3, 1}, /* AD7124_IOCon1 */
MitchAD 2:0897873979f3 8 {0x04, 0x0000, 2, 1}, /* AD7124_IOCon2 */
MitchAD 2:0897873979f3 9 {0x05, 0x02, 1, 2}, /* AD7124_ID */
MitchAD 2:0897873979f3 10 {0x06, 0x0000, 3, 2}, /* AD7124_Error */
MitchAD 2:0897873979f3 11 {0x07, 0x0040, 3, 1}, /* AD7124_Error_En */
MitchAD 2:0897873979f3 12 {0x08, 0x00, 1, 2}, /* AD7124_Mclk_Count */
MitchAD 2:0897873979f3 13 {0x09, 0x8001, 2, 1}, /* AD7124_Channel_0 */
MitchAD 2:0897873979f3 14 {0x0A, 0x9043, 2, 1}, /* AD7124_Channel_1 */
MitchAD 2:0897873979f3 15 {0x0B, 0x2085, 2, 1}, /* AD7124_Channel_2 */
MitchAD 2:0897873979f3 16 {0x0C, 0x30C7, 2, 1}, /* AD7124_Channel_3 */
MitchAD 2:0897873979f3 17 {0x0D, 0x4109, 2, 1}, /* AD7124_Channel_4 */
MitchAD 2:0897873979f3 18 {0x0E, 0x514B, 2, 1}, /* AD7124_Channel_5 */
MitchAD 2:0897873979f3 19 {0x0F, 0x618D, 2, 1}, /* AD7124_Channel_6 */
MitchAD 2:0897873979f3 20 {0x10, 0x71CF, 2, 1}, /* AD7124_Channel_7 */
MitchAD 2:0897873979f3 21 {0x11, 0x0001, 2, 1}, /* AD7124_Channel_8 */
MitchAD 2:0897873979f3 22 {0x12, 0x0001, 2, 1}, /* AD7124_Channel_9 */
MitchAD 2:0897873979f3 23 {0x13, 0x0001, 2, 1}, /* AD7124_Channel_10 */
MitchAD 2:0897873979f3 24 {0x14, 0x0001, 2, 1}, /* AD7124_Channel_11 */
MitchAD 2:0897873979f3 25 {0x15, 0x0001, 2, 1}, /* AD7124_Channel_12 */
MitchAD 2:0897873979f3 26 {0x16, 0x0001, 2, 1}, /* AD7124_Channel_13 */
MitchAD 2:0897873979f3 27 {0x17, 0x0001, 2, 1}, /* AD7124_Channel_14 */
MitchAD 2:0897873979f3 28 {0x18, 0x0001, 2, 1}, /* AD7124_Channel_15 */
MitchAD 2:0897873979f3 29 {0x19, 0x0870, 2, 1}, /* AD7124_Config_0 */
MitchAD 2:0897873979f3 30 {0x1A, 0x0871, 2, 1}, /* AD7124_Config_1 */
MitchAD 2:0897873979f3 31 {0x1B, 0x0862, 2, 1}, /* AD7124_Config_2 */
MitchAD 2:0897873979f3 32 {0x1C, 0x0863, 2, 1}, /* AD7124_Config_3 */
MitchAD 2:0897873979f3 33 {0x1D, 0x0864, 2, 1}, /* AD7124_Config_4 */
MitchAD 2:0897873979f3 34 {0x1E, 0x0865, 2, 1}, /* AD7124_Config_5 */
MitchAD 2:0897873979f3 35 {0x1F, 0x0866, 2, 1}, /* AD7124_Config_6 */
MitchAD 2:0897873979f3 36 {0x20, 0x0867, 2, 1}, /* AD7124_Config_7 */
MitchAD 2:0897873979f3 37 {0x21, 0x060180, 3, 1}, /* AD7124_Filter_0 */
MitchAD 2:0897873979f3 38 {0x22, 0x060180, 3, 1}, /* AD7124_Filter_1 */
MitchAD 2:0897873979f3 39 {0x23, 0x060180, 3, 1}, /* AD7124_Filter_2 */
MitchAD 2:0897873979f3 40 {0x24, 0x060180, 3, 1}, /* AD7124_Filter_3 */
MitchAD 2:0897873979f3 41 {0x25, 0x060180, 3, 1}, /* AD7124_Filter_4 */
MitchAD 2:0897873979f3 42 {0x26, 0x060180, 3, 1}, /* AD7124_Filter_5 */
MitchAD 2:0897873979f3 43 {0x27, 0x060180, 3, 1}, /* AD7124_Filter_6 */
MitchAD 2:0897873979f3 44 {0x28, 0x060180, 3, 1}, /* AD7124_Filter_7 */
MitchAD 2:0897873979f3 45 {0x29, 0x800000, 3, 1}, /* AD7124_Offset_0 */
MitchAD 2:0897873979f3 46 {0x2A, 0x800000, 3, 1}, /* AD7124_Offset_1 */
MitchAD 2:0897873979f3 47 {0x2B, 0x800000, 3, 1}, /* AD7124_Offset_2 */
MitchAD 2:0897873979f3 48 {0x2C, 0x800000, 3, 1}, /* AD7124_Offset_3 */
MitchAD 2:0897873979f3 49 {0x2D, 0x800000, 3, 1}, /* AD7124_Offset_4 */
MitchAD 2:0897873979f3 50 {0x2E, 0x800000, 3, 1}, /* AD7124_Offset_5 */
MitchAD 2:0897873979f3 51 {0x2F, 0x800000, 3, 1}, /* AD7124_Offset_6 */
MitchAD 2:0897873979f3 52 {0x30, 0x800000, 3, 1}, /* AD7124_Offset_7 */
MitchAD 2:0897873979f3 53 {0x31, 0x500000, 3, 1}, /* AD7124_Gain_0 */
MitchAD 2:0897873979f3 54 {0x32, 0x500000, 3, 1}, /* AD7124_Gain_1 */
MitchAD 2:0897873979f3 55 {0x33, 0x500000, 3, 1}, /* AD7124_Gain_2 */
MitchAD 2:0897873979f3 56 {0x34, 0x500000, 3, 1}, /* AD7124_Gain_3 */
MitchAD 2:0897873979f3 57 {0x35, 0x500000, 3, 1}, /* AD7124_Gain_4 */
MitchAD 2:0897873979f3 58 {0x36, 0x500000, 3, 1}, /* AD7124_Gain_5 */
MitchAD 2:0897873979f3 59 {0x37, 0x500000, 3, 1}, /* AD7124_Gain_6 */
MitchAD 2:0897873979f3 60 {0x38, 0x500000, 3, 1}, /* AD7124_Gain_7 */
MitchAD 2:0897873979f3 61 };