AD7124 Example Program

Dependencies:   platform_drivers AD7124_no_OS

Revision:
2:0897873979f3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ad7124_regs_custom.cpp	Thu Sep 05 20:50:43 2019 +0000
@@ -0,0 +1,83 @@
+/*
+   Power Mode: Low Power Mode
+   (Channel #, Enable, Setup, Gain, Filter, Filter Data Rate)
+   =============================================================
+   Channel 00: 1, 0, 001, Sinc4, 384
+   Channel 01: 1, 1, 002, Sinc4, 384
+   Channel 02: 0, 2, 004, Sinc4, 384
+   Channel 03: 0, 3, 008, Sinc4, 384
+   Channel 04: 0, 4, 016, Sinc4, 384
+   Channel 05: 0, 5, 032, Sinc4, 384
+   Channel 06: 0, 6, 064, Sinc4, 384
+   Channel 07: 0, 7, 128, Sinc4, 384
+   Channel 08: 0, 0, 001, Sinc4, 384
+   Channel 09: 0, 0, 001, Sinc4, 384
+   Channel 10: 0, 0, 001, Sinc4, 384
+   Channel 11: 0, 0, 001, Sinc4, 384
+   Channel 12: 0, 0, 001, Sinc4, 384
+   Channel 13: 0, 0, 001, Sinc4, 384
+   Channel 14: 0, 0, 001, Sinc4, 384
+   Channel 15: 0, 0, 001, Sinc4, 384
+
+*/
+#include "ad7124_regs_configs.h"
+
+struct ad7124_st_reg ad7124_regs_custom[AD7124_REG_NO] = {
+      {0x00, 0x000081, 1, 2},
+      {0x01, 0x000100, 2, 1},
+      {0x02, 0x7fe779, 3, 2},
+      {0x03, 0x000000, 3, 1},
+      {0x04, 0x000000, 2, 1},
+      {0x05, 0x000014, 1, 2},
+      {0x06, 0x000000, 3, 2},
+      {0x07, 0x000040, 3, 1},
+      {0x08, 0x000000, 1, 2},
+      {0x09, 0x008001, 2, 1},
+      {0x0a, 0x009043, 2, 1},
+      {0x0b, 0x002085, 2, 1},
+      {0x0c, 0x0030c7, 2, 1},
+      {0x0d, 0x004109, 2, 1},
+      {0x0e, 0x00514b, 2, 1},
+      {0x0f, 0x00618d, 2, 1},
+      {0x10, 0x0071cf, 2, 1},
+      {0x11, 0x000001, 2, 1},
+      {0x12, 0x000001, 2, 1},
+      {0x13, 0x000001, 2, 1},
+      {0x14, 0x000001, 2, 1},
+      {0x15, 0x000001, 2, 1},
+      {0x16, 0x000001, 2, 1},
+      {0x17, 0x000001, 2, 1},
+      {0x18, 0x000001, 2, 1},
+      {0x19, 0x000870, 2, 1},
+      {0x1a, 0x000871, 2, 1},
+      {0x1b, 0x000862, 2, 1},
+      {0x1c, 0x000863, 2, 1},
+      {0x1d, 0x000864, 2, 1},
+      {0x1e, 0x000865, 2, 1},
+      {0x1f, 0x000866, 2, 1},
+      {0x20, 0x000867, 2, 1},
+      {0x21, 0x060180, 3, 1},
+      {0x22, 0x060180, 3, 1},
+      {0x23, 0x060180, 3, 1},
+      {0x24, 0x060180, 3, 1},
+      {0x25, 0x060180, 3, 1},
+      {0x26, 0x060180, 3, 1},
+      {0x27, 0x060180, 3, 1},
+      {0x28, 0x060180, 3, 1},
+      {0x29, 0x800000, 3, 1},
+      {0x2a, 0x800000, 3, 1},
+      {0x2b, 0x800000, 3, 1},
+      {0x2c, 0x800000, 3, 1},
+      {0x2d, 0x800000, 3, 1},
+      {0x2e, 0x800000, 3, 1},
+      {0x2f, 0x800000, 3, 1},
+      {0x30, 0x800000, 3, 1},
+      {0x31, 0x555260, 3, 1},
+      {0x32, 0x555260, 3, 1},
+      {0x33, 0x555260, 3, 1},
+      {0x34, 0x555260, 3, 1},
+      {0x35, 0x555260, 3, 1},
+      {0x36, 0x555260, 3, 1},
+      {0x37, 0x555260, 3, 1},
+      {0x38, 0x555260, 3, 1},
+};