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
Revision 5:4800dd3838d6, committed 2018-06-15
- Comitter:
- MikamiUitOpen
- Date:
- Fri Jun 15 13:33:20 2018 +0000
- Parent:
- 4:c853feefa216
- Child:
- 6:a14d7f0bc3f5
- Commit message:
- 6
Changed in this revision
| F446_Multirate.cpp | Show annotated file Show diff for this revision Revisions of this file |
| F446_Multirate.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
--- a/F446_Multirate.hpp Tue Jun 05 23:35:08 2018 +0000 +++ b/F446_Multirate.hpp Fri Jun 15 13:33:20 2018 +0000 @@ -1,13 +1,14 @@ -//--------------------------------------------------- +//----------------------------------------------------------- // 出力を 4 倍にアップサンプリングするクラス(ヘッダ) // Nucleo-F446RE 専用 +// 補間処理で使うフィルタとして,縦続形構成の IIR フィルタを使用 // // 入力端子: A0 (PA_0) -- デフォルト // A1 (PA_1) -- Start() で指定可能 // 出力端子: A2 (PA_4) // -// 2018/06/06, Copyright (c) 2018 MIKAMI, Naoki -//--------------------------------------------------- +// 2018/06/15, Copyright (c) 2018 MIKAMI, Naoki +//----------------------------------------------------------- #include "mbed.h" #include "F446_ADC.hpp"