From 30c59a00956142aafda87c0bdc71c46d1a2218ff Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Mon, 27 Mar 2017 23:33:40 +0900 Subject: add oscilloscope view --- oscillo/oscillo.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 oscillo/oscillo.h (limited to 'oscillo') 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 + +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 -- cgit v1.2.3