![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Chapter006_Zara_F746NG
Dependencies: F746_GUI SRF08 Array_Matrix TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG SDFileSystem_Warning_Fixed FrequencyResponseDrawer F746_SAI_IO
Diff: MyClasses_Functions/MyFunctions.hpp
- Revision:
- 0:04b43b777fae
- Child:
- 1:cc2669b9d1e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MyClasses_Functions/MyFunctions.hpp Tue Apr 19 09:46:11 2016 +0000 @@ -0,0 +1,38 @@ +//-------------------------------------------------------------- +// フィルタ処理付き SD オーディオプレーヤーで使う大域関数(ヘッダ) +// +// 2016/04/19, Copyright (c) 2016 MIKAMI, Naoki +//-------------------------------------------------------------- + +#ifndef F746_MY_FUNCTIONS_HPP +#define F746_MY_FUNCTIONS_HPP + +#include "sai_io_o.hpp" +#include "ButtonGroup.hpp" +#include "FileSelectorWav.hpp" +#include "DesignerDrawer.hpp" +#include "SD_WavReader.hpp" + +using namespace Mikami; + +// 1フレーム分の信号処理 (IIR フィルタ) の実行 +void ProcessSignal(SD_WavReader &sdReader, SaiIO_O &mySai, + int16_t sn[], float g0, Biquad hn[], + int order, bool filterOn); + +// SD カードのファイルのオープン +int32_t SD_Open(SD_WavReader &sdReader, + string fileName, int32_t frameSize); + +// ファイルの選択 +void SelectFile(ButtonGroup &menu, FileSelector &selector, + Label &msg, string &selectedName); + +// フィルタの変更 +void ModifyFilter(DesignerDrawer &drawerObj, + ButtonGroup &lpHp, ButtonGroup &onOff, + Biquad hn[], Biquad::Coefs ck[], + float &g0, bool &filterOn); + +#endif // F746_MY_FUNCTIONS_HPP +