SONY製のNFCカードリーダ RC-S620/S をイニシエータとして使用し、NFC Type-A/Bと通信するライブラリです。FeliCaとは通信できません。(This library can't communicate with FeliCa! Only for NFC Type-A/B.)

Dependents:   DLC_STARTER

Revision:
2:08ccf5062b69
Parent:
0:16a4197a4dfb
--- a/RCS620S_AB.h	Sat Jun 06 04:58:49 2020 +0000
+++ b/RCS620S_AB.h	Sat Jun 13 01:57:30 2020 +0000
@@ -12,6 +12,12 @@
 */
 #define READ_BUF_SIZE 256
 
+/**
+ @def UART_TRANSMIT_FAIL_TIMEOUT_MS
+ UARTコマンド送信後ACK応答が返ってこない場合にタイムアウトする時間(ミリ秒)
+ (Time-out when ACK response is not returned after sending UART command.)
+*/
+#define UART_TRANSMIT_FAIL_TIMEOUT_MS 1000
 
 /** RCS620S_AB class.
 * RC-S620/Sをイニシエータとして使用しNFC Type-A/Bカードと通信するためのライブラリです。
@@ -190,8 +196,12 @@
      //カードリーダ UART受信割込み
     void serialRxIrq();
     
+    //受信割込みバッファをクリア
     void clearRecieveBuffer();
-
+    
+    //ACK応答待ち
+    bool isACKrecieved(int timeout_ms);
+    
     //読み取り完了まで待機
     void waitWhileRead(int cycleTime_ms);