Nucleo ボードの USB コネクタに対応するシリアルポート受送信割込みで,複数のキャラクタ受送信をサポ-トするクラス.   このライブラリを登録した際のプログラム: Demo_F446_AD_DA_Ctrl.

Dependents:   F446_FunctionGenerator F446_UpSampling_GraphicEqualizer F446_UpSampling_ReverbSystem F446_UpSampling_FrqShifter_Weaver ... more

Revision:
6:8084247806a4
Parent:
5:151d281afa55
Child:
7:190d94fba10d
--- a/SerialRxTxIntr.cpp	Fri Sep 21 06:57:31 2018 +0000
+++ b/SerialRxTxIntr.cpp	Fri Sep 28 08:13:26 2018 +0000
@@ -2,7 +2,7 @@
 //  Nucleo ボードの USB コネクタに対応するシリアルポート受送信割込みで
 //  複数のキャラクタ受送信をサポ-トするクラス
 //
-//  2018/09/21, Copyright (c) 2018 MIKAMI, Naoki
+//  2018/09/28, Copyright (c) 2018 MIKAMI, Naoki
 //-------------------------------------------------------------
 
 #include "SerialRxTxIntr.hpp"
@@ -33,8 +33,7 @@
 	//      lf が false の場合は,最後に '\n' を送信しない
 	void SerialRxTxIntr::Tx(string str, bool lf)
 	{
-    	for (int n=0; n<str.size(); n++)
-        	tx_.TxWrite(str[n]);
+		tx_.TxString(str);
 	    if (lf) tx_.TxWrite('\n');
 	}
 
@@ -64,4 +63,4 @@
 	        }
     	}
 	}
-}
\ No newline at end of file
+}