uint8_t型とunsigned char型に対応した多バイトシリアル通信用ライブラリ

Dependents:   multiserial_test serial_check_controller receiverA receiver_transmitter ... more

Files at this revision

API Documentation at this revision

Comitter:
Hatter
Date:
Sat Sep 27 00:46:24 2014 +0000
Parent:
13:afc65bff2e6b
Child:
15:2304fcb6a594
Child:
16:d1711f63e692
Child:
17:5e2c78dbbd40
Commit message:
"start" and "stop" added

Changed in this revision

MultiSerial.cpp Show annotated file Show diff for this revision Revisions of this file
MultiSerial.h Show annotated file Show diff for this revision Revisions of this file
--- a/MultiSerial.cpp	Fri Sep 26 09:25:22 2014 +0000
+++ b/MultiSerial.cpp	Sat Sep 27 00:46:24 2014 +0000
@@ -139,3 +139,9 @@
                 rx=0;
             }
         }
+        
+        uint8_t MultiSerial::readable_check(){
+            
+            return __serial__.readable();
+            
+            }
--- a/MultiSerial.h	Fri Sep 26 09:25:22 2014 +0000
+++ b/MultiSerial.h	Sat Sep 27 00:46:24 2014 +0000
@@ -99,6 +99,8 @@
         void start_write();
         
         void stop_write();
+        
+        uint8_t readable_check();
 
     protected: