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.
wave.h@0:8ee38453bad9, 2016-03-13 (annotated)
- Committer:
- exopiped
- Date:
- Sun Mar 13 01:12:40 2016 +0000
- Revision:
- 0:8ee38453bad9
Rebuilt from original code from April 2014
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| exopiped | 0:8ee38453bad9 | 1 | #ifndef WAVE_H |
| exopiped | 0:8ee38453bad9 | 2 | #define WAVE_H |
| exopiped | 0:8ee38453bad9 | 3 | |
| exopiped | 0:8ee38453bad9 | 4 | #define WAVE_TYPE_FIRST 0 |
| exopiped | 0:8ee38453bad9 | 5 | #define WAVE_TYPE_SAW 0 |
| exopiped | 0:8ee38453bad9 | 6 | #define WAVE_TYPE_TRIANGLE 1 |
| exopiped | 0:8ee38453bad9 | 7 | #define WAVE_TYPE_SQUARE 2 |
| exopiped | 0:8ee38453bad9 | 8 | #define WAVE_TYPE_LAST 2 |
| exopiped | 0:8ee38453bad9 | 9 | #define WAVE_TYPE_DEFAULT WAVE_TYPE_SAW |
| exopiped | 0:8ee38453bad9 | 10 | #define WAVE_SAMPLE_RATE 22050 |
| exopiped | 0:8ee38453bad9 | 11 | |
| exopiped | 0:8ee38453bad9 | 12 | void wave_init(void); |
| exopiped | 0:8ee38453bad9 | 13 | void wave_reset(void); |
| exopiped | 0:8ee38453bad9 | 14 | void wave_update(void); |
| exopiped | 0:8ee38453bad9 | 15 | int wave_nextval(unsigned freq); |
| exopiped | 0:8ee38453bad9 | 16 | bool wave_type_changed(void); |
| exopiped | 0:8ee38453bad9 | 17 | void wave_type_incr(void); |
| exopiped | 0:8ee38453bad9 | 18 | #endif |
| exopiped | 0:8ee38453bad9 | 19 |