Firmware library for the X-NUCLEO-NFC01A1 Dynamic NFC Tag board.

Dependencies:   M24SR

Dependents:   NFC M2M_2016_STM32 MyongjiElec_capstone1 IDW01M1_Cloud_IBM ... more

Fork of X_NUCLEO_NFC01A1 by ST Expansion SW Team

X-NUCLEO-NFC01A1 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-NFC01A1 Dynamic NFC Tag Expansion Board based on M24SR.

Firmware Library

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

Example applications

1. Hello World
2. Asynchronous Hello World

Revision:
8:5e637c71cbb3
Parent:
0:969a2be49f41
--- a/Interfaces/Component_class.h	Mon Jan 11 12:37:28 2016 +0000
+++ b/Interfaces/Component_class.h	Mon Jan 11 13:06:23 2016 +0000
@@ -55,21 +55,19 @@
 class Component
 {
 public:
-	/**
-	 * @brief       Initialization of the component.
-	 * @param[out]  ptr Pointer to device specific initalization structure.
-	 * @return      0 in case of success, an error code otherwise.
-	 */
-	virtual int Init(void *ptr) = 0;
+    /**
+     * @brief  Initializing the component.
+     * @param  init pointer to device specific initalization structure.
+     * @retval "0" in case of success, an error code otherwise.
+     */
+    virtual int Init(void *init) = 0;
 
-	/**
-	 * @brief       Get ID of the component.
-	 * @param[out]  id Pointer to where to store the ID to.
-	 * @return      0 in case of success, an error code otherwise.
-	 */
-	virtual int ReadID(uint8_t *id) = 0;
-
-	virtual ~Component(){};
+    /**
+     * @brief  Getting the ID of the component.
+     * @param[out]  id pointer to an allocated variable to store the ID into.
+     * @retval "0" in case of success, an error code otherwise.
+     */
+    virtual int ReadID(uint8_t *id) = 0;
 };
 
 #endif /* __COMPONENT_CLASS_H */