Utility library to read and write Ndef messages from/to a Type4 NFC tag

Dependents:   NFC M2M_2016_STM32 MyongjiElec_capstone1 IDW01M1_Cloud_IBM ... more

Fork of NDefLib by ST Expansion SW Team

NDEF NFC library

This library provides an abstract API to create NDEF formatted messages and records and to read/write them from/to a Type4 NFC Tag.

Implementations

At the moment, the NDEF API is implemented by X_NUCLEO_NFC01A1 and X_NUCLEO_NFC02A1 Dynamic NFC Tag libraries respectively driving the X-NUCLEO-NFC01A1 and X-NUCLEO-NFC02A1 boards.

Revision:
10:9f34b0cfefe4
Parent:
8:473f6e0b03df
Child:
12:ed4d9b8d1410
--- a/Record.h	Fri Jan 08 15:26:21 2016 +0000
+++ b/Record.h	Fri Jan 08 15:52:39 2016 +0000
@@ -83,6 +83,7 @@
 	}
 
 	/**
+	 * tell if it is the last record
 	 * @return true if it is the last record in the message
 	 */
 	bool isLastRecord() const {
@@ -90,6 +91,7 @@
 	}
 
 	/**
+	 * tell if it is the first record
 	 * @return true if it is the fist record in the message
 	 */
 	bool isFirstRecord() const {
@@ -97,13 +99,17 @@
 	}
 
 	/**
-	 * set the record as generic
+	 * set the record as generic (not the first one and not the last one)
 	 */
 	void setAsMiddleRecord() {
 		mRecordHeader.setMB(false);
 		mRecordHeader.setME(false);
 	}
 
+	/**
+	 * Tell if the record is in the middle of a chain
+	 * @return true if is not the fist or the last one
+	 */
 	bool isMiddleRecord() const{
 		return ! (mRecordHeader.getMB() || mRecordHeader.getME());
 	}