PC から,リアルタイム信号処理を行っている Nucleo-F446 を制御する例.
Dependencies: mbed SerialTxRxIntr F446_AD_DA_Multirate
Diff: main.cpp
- Revision:
- 10:54bbf5ced7fb
- Parent:
- 9:27c118cf75e4
- Child:
- 13:bcaee883b812
--- a/main.cpp Sat Jan 26 04:17:01 2019 +0000 +++ b/main.cpp Sat Nov 23 07:53:21 2019 +0000 @@ -16,9 +16,9 @@ // // PC 側のプログラム // F446_AD_DA_Ctrl -// 端末エミュレータでも使用可能(ボーレート:115,200 baud) +// 端末エミュレータでも使用可能(ボーレート:9,600 baud) // -// 2019/01/26, Copyright (c) 2019 MIKAMI, Naoki +// 2019/11/23, Copyright (c) 2019 MIKAMI, Naoki //---------------------------------------------------------------------- #include "F446_Multirate.hpp" @@ -28,10 +28,10 @@ using namespace Mikami; -const int FS_ = 10000; // 入力の標本化周波数: 10 kHz -F446_Multirate myAdDa_; // 出力標本化周波数を4倍にするオブジェクト -SerialRxTxIntr rxTx_(32, 115200); // Serial クラスの受送信割込み用オブジェクト - // ボーレート:115,200 baud +const int FS_ = 10000; // 入力の標本化周波数: 10 kHz +F446_Multirate myAdDa_; // 出力標本化周波数を4倍にするオブジェクト +SerialRxTxIntr rxTx_(32, 9600); // Serial クラスの受送信割込み用オブジェクト + // ボーレート:9,600 baud void SendParm(float param); // パラメータの値を送信 void Respond(bool &sw, float ¶m); // 受信バッファのデータが有効になった場合の処理