X_NUCLEO_NFC02A1 library for M24LR

Dependencies:   ST_INTERFACES

Dependents:   HelloWorld_NFC02A1_mbedOS HelloWorld_NFC02A1laatste HelloWorld_NFC02A1

Fork of X_NUCLEO_NFC02A1 by ST Expansion SW Team

X-NUCLEO-NFC02A1 Dynamic NFC Tag Expansion Board Firmware Package

Introduction

This firmware package includes Components Device Drivers, Board Support Package and example applications for STMicroelectronics X-NUCLEO-NFC02A1 Dynamic NFC Tag Expansion Board based on M24LR.

Firmware Library

Class X_NUCLEO_NFC02A1 is intended to represent the Dynamic NFC Tag Expansion Board with the same name.
It provides an API to access to the M24LR component and to the three onboard LEDs.
It is intentionally implemented as a singleton because only one X_NUCLEO_NFC02A1 at a time might be deployed in a HW component stack.
The library also provides an implementation of the NDEF library API for M24LR, providing an simple way to read/write NDEF formatted messages from/to the M24LR dynamic NFC tag.

Example application

Hello World is a simple application to program and read an URI from the NFC tag.

Revision:
6:8c1eca41b3a9
Parent:
5:900640bf1cff
Child:
8:7c4cf671960b
--- a/m24lr/NDefNfcTagM24LR.h	Mon Oct 03 11:57:23 2016 +0000
+++ b/m24lr/NDefNfcTagM24LR.h	Fri May 19 07:51:32 2017 +0000
@@ -2,8 +2,8 @@
   ******************************************************************************
   * @file       NdefNfcTagM24LR.h
   * @author     AMG Central Lab
-  * @version    V1.0.0
-  * @date       30 Aug 2016
+  * @version    V2.0.0
+  * @date       19 May 2017
   * @brief      M24LR specific NDefLib derived class
   ******************************************************************************
   * @attention
@@ -70,11 +70,11 @@
         mDevice(device),mIsSessionOpen(false),
         mMaxReadBytes(0xFF), mMaxWriteBytes(0xFF){}
 
-    virtual bool openSession(bool force = false);
+    virtual bool open_session(bool force = false);
 
-    virtual bool closeSession();
+    virtual bool close_session();
 
-    virtual bool isSessionOpen(){
+    virtual bool is_session_open(){
         return mIsSessionOpen;
     }
         
@@ -82,8 +82,8 @@
     * Close the open session.
     */
     virtual ~NDefNfcTagM24LR(){
-        if(isSessionOpen())
-            closeSession();
+        if(is_session_open())
+            close_session();
     }//~NDefNfcTagM24SR
 
     protected: