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 F446_AD_DA UIT_FFT_Real
Diff: myFunction.hpp
- Revision:
- 7:5ba884060d3b
- Parent:
- 6:c38ec7939609
--- a/myFunction.hpp Sun Nov 04 10:41:02 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-//---------------------------------------------------------------------
-// データを PC へ転送
-//
-// 2018/10/07, Copyright (c) 2018 MIKAMI, Naoki
-//---------------------------------------------------------------------
-
-#include <string>
-#include "Array.hpp"
-#include "SerialRxTxIntr.hpp"
-using namespace Mikami;
-
-#ifndef MY_FUNCTION_XFER_HPP
-#define MY_FUNCTION_XFER_HPP
-
-extern SerialRxTxIntr rxTx_;
-
-// データを PC へ転送(0 ~ 10,000 の範囲の値を 2 文字で表すコード化を利用)
-void Xfer(Array<uint16_t> &xn)
-{
- string str = "";
- for (int n=0; n<xn.Length(); n++)
- {
- div_t a = div(xn[n], 100);
- str += a.quot + 0x10;
- str += a.rem + 0x10;
- }
- rxTx_.Tx(str+"\n");
- rxTx_.Tx("EOT\n");
-}
-
-#endif // MY_FUNCTION_XFER_HPP