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.
Dependents: F446_UpSampling_GraphicEqualizer F446_UpSampling_ReverbSystem F446_UpSampling_FrqShifter_Weaver Demo_F446_AD_DA_Multirate ... more
Diff: F446_Multirate.cpp
- Revision:
- 5:4800dd3838d6
- Parent:
- 4:c853feefa216
- Child:
- 7:6275fe158ae8
diff -r c853feefa216 -r 4800dd3838d6 F446_Multirate.cpp --- a/F446_Multirate.cpp Tue Jun 05 23:35:08 2018 +0000 +++ b/F446_Multirate.cpp Fri Jun 15 13:33:20 2018 +0000 @@ -1,8 +1,9 @@ //----------------------------------------------------------- // 出力を 4 倍にアップサンプリングするクラス:高域の補正を行う場合 // Nucleo-F446RE 専用 +// 補間処理で使うフィルタとして,縦続形構成の IIR フィルタを使用 // -// 2018/06/06, Copyright (c) 2018 MIKAMI, Naoki +// 2018/06/15, Copyright (c) 2018 MIKAMI, Naoki //----------------------------------------------------------- #include "F446_Multirate.hpp" @@ -60,7 +61,7 @@ AdcF446 *F446_Multirate::adc_; DacF446 F446_Multirate::dac_; Array<float> F446_Multirate::buf_(2*FACTOR_, 0.0f); -int F446_Multirate::indexR_ = FACTOR_ - 1; +int F446_Multirate::indexR_ = FACTOR_; float F446_Multirate::xn_; __IO bool F446_Multirate::okIn_ = false;