diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-27 23:33:40 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-27 23:33:40 +0900 |
commit | 30c59a00956142aafda87c0bdc71c46d1a2218ff (patch) | |
tree | 0bf1c81767dc8edb86ade2a4e224392e2ac5280b /oscillo | |
parent | 0073f2b8befc6163f2970cb7a01e75fffc95994e (diff) |
add oscilloscope view
Diffstat (limited to 'oscillo')
-rw-r--r-- | oscillo/oscillo.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/oscillo/oscillo.h b/oscillo/oscillo.h new file mode 100644 index 0000000..451f9f4 --- /dev/null +++ b/oscillo/oscillo.h @@ -0,0 +1,17 @@ +#ifndef MYON_FMPLAYER_OSCILLO_H_INCLUDED +#define MYON_FMPLAYER_OSCILLO_H_INCLUDED + +#include <stdint.h> + +enum { + OSCILLO_SAMPLE_COUNT = 8192, + OSCILLO_OFFSET_SHIFT = 10, +}; + +struct oscillodata { + int16_t buf[OSCILLO_SAMPLE_COUNT]; + unsigned offset; + +}; + +#endif // MYON_FMPLAYER_OSCILLO_H_INCLUDED |