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: Array_Matrix mbed SerialTxRxIntr UIT_FFT_Real
Diff: Xfer.hpp
- Revision:
- 4:741883d4a075
- Parent:
- 0:a80f730d32a8
--- a/Xfer.hpp Tue Jan 28 12:55:59 2020 +0000
+++ b/Xfer.hpp Wed Feb 05 08:58:16 2020 +0000
@@ -1,7 +1,7 @@
//---------------------------------------------------------------------
// スペクトル解析の結果を PC へ転送するためのクラス
//
-// 2019/11/16, Copyright (c) 2019 MIKAMI, Naoki
+// 2020/02/05, Copyright (c) 2020 MIKAMI, Naoki
//---------------------------------------------------------------------
#include <string>
@@ -31,7 +31,7 @@
xn_[n] = (uint16_t)xDb;
}
}
-
+
// データを PC へ転送(0 ~ 10,000 の範囲の値を 2 文字で表すコード化を利用)
void ToPC()
{
@@ -42,8 +42,8 @@
str += a.quot + 0x10;
str += a.rem + 0x10;
}
- rxTx_.Tx(str+"\n");
- rxTx_.Tx("EOT\n");
+ rxTx_.TxString(str+"\n");
+ rxTx_.TxString("EOT\n");
}
private:
@@ -55,5 +55,4 @@
Xfer(const Xfer&);
Xfer& operator=(const Xfer&);
};
-#endif // XFER_CONVERT_TOPC_HPP
-
+#endif // XFER_CONVERT_TOPC_HPP
\ No newline at end of file