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-05-07
Revision:
7:2964179ff931
Parent:
1:cc2669b9d1e2
Child:
9:fe097e4c9024

File content as of revision 7:2964179ff931:

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

#ifndef F746_MY_FUNCTIONS_HPP
#define F746_MY_FUNCTIONS_HPP

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