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
main.h
- Committer:
- MikamiUitOpen
- Date:
- 2016-04-19
- Revision:
- 8:e7dc8658c5cd
- Parent:
- 0:0e5131366580
File content as of revision 8:e7dc8658c5cd:
//---------------------------------------------- // Modified by MIKAMI, 2016/01/05 //---------------------------------------------- #include "mbed.h" #include "functions_for_audio.hpp" #include "LCD_DISCO_F746NG.h" #include "button_group.hpp" #include "WaveformDisplay.hpp" #include "AnalysisSelector.hpp" const int N_DATA_ = 260; // Number of data to be analyzed const int BufferSize = (N_DATA_*2 + 1)*4; // Sample Size for input data extern int16_t audio_in_buffer[BufferSize]; extern __IO bool audio_in_buffer_captured; extern __IO int32_t audio_in_buffer_offset; extern __IO int32_t audio_in_buffer_length;