![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
AD7124 Example Program
Dependencies: platform_drivers AD7124_no_OS
ad7124_regs_custom.cpp@2:0897873979f3, 2019-09-05 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
MitchAD | 2:0897873979f3 | 1 | /* |
MitchAD | 2:0897873979f3 | 2 | Power Mode: Low Power Mode |
MitchAD | 2:0897873979f3 | 3 | (Channel #, Enable, Setup, Gain, Filter, Filter Data Rate) |
MitchAD | 2:0897873979f3 | 4 | ============================================================= |
MitchAD | 2:0897873979f3 | 5 | Channel 00: 1, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 6 | Channel 01: 1, 1, 002, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 7 | Channel 02: 0, 2, 004, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 8 | Channel 03: 0, 3, 008, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 9 | Channel 04: 0, 4, 016, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 10 | Channel 05: 0, 5, 032, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 11 | Channel 06: 0, 6, 064, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 12 | Channel 07: 0, 7, 128, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 13 | Channel 08: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 14 | Channel 09: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 15 | Channel 10: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 16 | Channel 11: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 17 | Channel 12: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 18 | Channel 13: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 19 | Channel 14: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 20 | Channel 15: 0, 0, 001, Sinc4, 384 |
MitchAD | 2:0897873979f3 | 21 | |
MitchAD | 2:0897873979f3 | 22 | */ |
MitchAD | 2:0897873979f3 | 23 | #include "ad7124_regs_configs.h" |
MitchAD | 2:0897873979f3 | 24 | |
MitchAD | 2:0897873979f3 | 25 | struct ad7124_st_reg ad7124_regs_custom[AD7124_REG_NO] = { |
MitchAD | 2:0897873979f3 | 26 | {0x00, 0x000081, 1, 2}, |
MitchAD | 2:0897873979f3 | 27 | {0x01, 0x000100, 2, 1}, |
MitchAD | 2:0897873979f3 | 28 | {0x02, 0x7fe779, 3, 2}, |
MitchAD | 2:0897873979f3 | 29 | {0x03, 0x000000, 3, 1}, |
MitchAD | 2:0897873979f3 | 30 | {0x04, 0x000000, 2, 1}, |
MitchAD | 2:0897873979f3 | 31 | {0x05, 0x000014, 1, 2}, |
MitchAD | 2:0897873979f3 | 32 | {0x06, 0x000000, 3, 2}, |
MitchAD | 2:0897873979f3 | 33 | {0x07, 0x000040, 3, 1}, |
MitchAD | 2:0897873979f3 | 34 | {0x08, 0x000000, 1, 2}, |
MitchAD | 2:0897873979f3 | 35 | {0x09, 0x008001, 2, 1}, |
MitchAD | 2:0897873979f3 | 36 | {0x0a, 0x009043, 2, 1}, |
MitchAD | 2:0897873979f3 | 37 | {0x0b, 0x002085, 2, 1}, |
MitchAD | 2:0897873979f3 | 38 | {0x0c, 0x0030c7, 2, 1}, |
MitchAD | 2:0897873979f3 | 39 | {0x0d, 0x004109, 2, 1}, |
MitchAD | 2:0897873979f3 | 40 | {0x0e, 0x00514b, 2, 1}, |
MitchAD | 2:0897873979f3 | 41 | {0x0f, 0x00618d, 2, 1}, |
MitchAD | 2:0897873979f3 | 42 | {0x10, 0x0071cf, 2, 1}, |
MitchAD | 2:0897873979f3 | 43 | {0x11, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 44 | {0x12, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 45 | {0x13, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 46 | {0x14, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 47 | {0x15, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 48 | {0x16, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 49 | {0x17, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 50 | {0x18, 0x000001, 2, 1}, |
MitchAD | 2:0897873979f3 | 51 | {0x19, 0x000870, 2, 1}, |
MitchAD | 2:0897873979f3 | 52 | {0x1a, 0x000871, 2, 1}, |
MitchAD | 2:0897873979f3 | 53 | {0x1b, 0x000862, 2, 1}, |
MitchAD | 2:0897873979f3 | 54 | {0x1c, 0x000863, 2, 1}, |
MitchAD | 2:0897873979f3 | 55 | {0x1d, 0x000864, 2, 1}, |
MitchAD | 2:0897873979f3 | 56 | {0x1e, 0x000865, 2, 1}, |
MitchAD | 2:0897873979f3 | 57 | {0x1f, 0x000866, 2, 1}, |
MitchAD | 2:0897873979f3 | 58 | {0x20, 0x000867, 2, 1}, |
MitchAD | 2:0897873979f3 | 59 | {0x21, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 60 | {0x22, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 61 | {0x23, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 62 | {0x24, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 63 | {0x25, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 64 | {0x26, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 65 | {0x27, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 66 | {0x28, 0x060180, 3, 1}, |
MitchAD | 2:0897873979f3 | 67 | {0x29, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 68 | {0x2a, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 69 | {0x2b, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 70 | {0x2c, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 71 | {0x2d, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 72 | {0x2e, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 73 | {0x2f, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 74 | {0x30, 0x800000, 3, 1}, |
MitchAD | 2:0897873979f3 | 75 | {0x31, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 76 | {0x32, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 77 | {0x33, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 78 | {0x34, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 79 | {0x35, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 80 | {0x36, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 81 | {0x37, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 82 | {0x38, 0x555260, 3, 1}, |
MitchAD | 2:0897873979f3 | 83 | }; |