Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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-10
- Revision:
- 9:fe097e4c9024
- Parent:
- 7:2964179ff931
- Child:
- 11:769d986c10fa
File content as of revision 9:fe097e4c9024:
//--------------------------------------------------------------
// フィルタ処理付き 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 IIR_Filtering(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