![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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@8:e7dc8658c5cd, 2016-04-19 (annotated)
- Committer:
- MikamiUitOpen
- Date:
- Tue Apr 19 09:35:24 2016 +0000
- Revision:
- 8:e7dc8658c5cd
- Parent:
- 0:0e5131366580
9
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MikamiUitOpen | 0:0e5131366580 | 1 | //---------------------------------------------- |
MikamiUitOpen | 0:0e5131366580 | 2 | // Modified by MIKAMI, 2016/01/05 |
MikamiUitOpen | 0:0e5131366580 | 3 | //---------------------------------------------- |
MikamiUitOpen | 0:0e5131366580 | 4 | |
MikamiUitOpen | 0:0e5131366580 | 5 | #include "mbed.h" |
MikamiUitOpen | 0:0e5131366580 | 6 | #include "functions_for_audio.hpp" |
MikamiUitOpen | 0:0e5131366580 | 7 | #include "LCD_DISCO_F746NG.h" |
MikamiUitOpen | 0:0e5131366580 | 8 | #include "button_group.hpp" |
MikamiUitOpen | 0:0e5131366580 | 9 | #include "WaveformDisplay.hpp" |
MikamiUitOpen | 0:0e5131366580 | 10 | #include "AnalysisSelector.hpp" |
MikamiUitOpen | 0:0e5131366580 | 11 | |
MikamiUitOpen | 0:0e5131366580 | 12 | const int N_DATA_ = 260; // Number of data to be analyzed |
MikamiUitOpen | 0:0e5131366580 | 13 | const int BufferSize = (N_DATA_*2 + 1)*4; // Sample Size for input data |
MikamiUitOpen | 0:0e5131366580 | 14 | |
MikamiUitOpen | 0:0e5131366580 | 15 | extern int16_t audio_in_buffer[BufferSize]; |
MikamiUitOpen | 0:0e5131366580 | 16 | extern __IO bool audio_in_buffer_captured; |
MikamiUitOpen | 0:0e5131366580 | 17 | extern __IO int32_t audio_in_buffer_offset; |
MikamiUitOpen | 0:0e5131366580 | 18 | extern __IO int32_t audio_in_buffer_length; |