![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Code for measuring the signal with a specified length and sampling rate, and saving it on a SD card.
savePower.h
- Committer:
- msamadani
- Date:
- 2017-10-05
- Revision:
- 2:8c5b6522139f
- Parent:
- 0:c05b00be2229
File content as of revision 2:8c5b6522139f:
#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