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.hpp
- Revision:
- 4:c853feefa216
- Parent:
- 3:285cebe5823c
- Child:
- 5:4800dd3838d6
--- a/F446_Multirate.hpp Wed May 30 09:09:04 2018 +0000 +++ b/F446_Multirate.hpp Tue Jun 05 23:35:08 2018 +0000 @@ -2,10 +2,11 @@ // 出力を 4 倍にアップサンプリングするクラス(ヘッダ) // Nucleo-F446RE 専用 // -// 入力端子: A0 (PA_0) +// 入力端子: A0 (PA_0) -- デフォルト +// A1 (PA_1) -- Start() で指定可能 // 出力端子: A2 (PA_4) // -// 2018/05/30, Copyright (c) 2018 MIKAMI, Naoki +// 2018/06/06, Copyright (c) 2018 MIKAMI, Naoki //--------------------------------------------------- #include "mbed.h" @@ -34,8 +35,9 @@ } // 標本化の実行開始 - // frequency: 入力の標本化周波数 - void Start(int frequency); + // frequency 入力の標本化周波数 + // pin 入力ピン(デフォルトは A0.A1 の指定も可) + void Start(int frequency, PinName pin = A0); // AD変換の結果を取り出す float Input();