Version using MEMS microphone and CODEC for the program "F746_RealtimeSpectrumAnalyzer". "F746_RealtimeSpectrumAnalyzer" の入力を MEMS のマイクと CODEC に変更.このプログラムは Tomona Nanase さんが作成し DISCO-F746NG_Oscilloscope の名前で登録しているプログラムで, CODEC を使って入力する部分を参考にして作成.このプログラムの説明は,CQ出版社のインターフェース誌,2016年4月号に掲載.

Dependencies:   BSP_DISCO_F746NG BUTTON_GROUP LCD_DISCO_F746NG TS_DISCO_F746NG UIT_FFT_Real mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 //----------------------------------------------
00002 //  Modified by MIKAMI, 2016/01/05
00003 //----------------------------------------------
00004 
00005 #include "mbed.h"
00006 #include "functions_for_audio.hpp"
00007 #include "LCD_DISCO_F746NG.h"
00008 #include "button_group.hpp"
00009 #include "WaveformDisplay.hpp"
00010 #include "AnalysisSelector.hpp"
00011 
00012 const int N_DATA_ = 260;                    // Number of data to be analyzed
00013 const int BufferSize = (N_DATA_*2 + 1)*4;   // Sample Size for input data
00014 
00015 extern int16_t audio_in_buffer[BufferSize];
00016 extern __IO bool audio_in_buffer_captured;
00017 extern __IO int32_t audio_in_buffer_offset;
00018 extern __IO int32_t audio_in_buffer_length;