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

MyClasses_Functions/MyFunctions.hpp

Committer:
MikamiUitOpen
Date:
2016-04-20
Revision:
1:cc2669b9d1e2
Parent:
0:04b43b777fae
Child:
7:2964179ff931

File content as of revision 1:cc2669b9d1e2:

//--------------------------------------------------------------
//  フィルタ処理付き SD オーディオプレーヤーで使う大域関数(ヘッダ)
//
//  2016/04/20, Copyright (c) 2016 MIKAMI, Naoki
//--------------------------------------------------------------

#ifndef F746_MY_FUNCTIONS_HPP
#define F746_MY_FUNCTIONS_HPP

#include "SAI_Output.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