Code for measuring the signal with a specified length and sampling rate, and saving it on a SD card.

Dependencies:   EALib I2S mbed

Revision:
0:c05b00be2229
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/savePower.h	Thu Jul 13 19:33:37 2017 +0000
@@ -0,0 +1,25 @@
+
+
+
+#ifndef SAVEPOWER_H
+#define SAVEPOWER_H
+
+#include "mbed.h"
+#include "sdram.h"
+
+#define MIND_BUSY           0x00000001  /* MII is Busy                       */
+#define DP83848C_DEF_ADR    0x0100      /* Default PHY device address        */
+#define MII_WR_TOUT         0x00050000  /* MII Read timeout count            */
+#define PHY_REG_BMCR        0x00        /* Basic Mode Control Register       */
+#define PHY_BMCR_PWR_DOWN   (1 << 11)    /* 1 = General power down mode       */
+
+
+
+void savePower(void);
+static int phy_write(unsigned int PhyReg, unsigned short Data);
+
+
+
+
+
+#endif
\ No newline at end of file