Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MagneWave.h
- Revision:
- 0:5a700113dd87
- Child:
- 3:500b992880b3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MagneWave.h Tue Oct 29 06:49:27 2013 +0000 @@ -0,0 +1,30 @@ +#ifndef MAGNE_WAVE_H +#define MAGNE_WAVE_H + +#include "mbed.h" +#include "SoftMCP4922.h" + +class MagneWave +{ +public: + /* + * MagneWave - Magnetone wave player + * param + * [in] dac: dac address + */ + MagneWave( SoftMCP4922 *dac ); + + /* + * play - player function + * param + * [in] wavefile: file pointer + */ + void play( FILE *wavefile ); + +private: + SoftMCP4922 *m_wave_DAC; +}; + + + +#endif // MAGNE_WAVE_H \ No newline at end of file