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
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
Diff: X_NUCLEO_NFC01A1.h
- Revision:
- 27:3881985097bb
- Parent:
- 20:aad5727cb8c6
--- a/X_NUCLEO_NFC01A1.h Wed Feb 03 09:01:05 2016 +0000 +++ b/X_NUCLEO_NFC01A1.h Fri Sep 30 12:33:20 2016 +0000 @@ -2,8 +2,8 @@ ****************************************************************************** * @file X_NUCLEO_NFC01A1.h * @author ST Central Labs - * @version V1.0.0 - * @date 05 Nov 2015 + * @version V1.1.0 + * @date 30 Set 2016 * @brief Singleton class that controls all the electronics inside the * X_NUCLEO_NFC01A1 expansion board. ****************************************************************************** @@ -71,7 +71,7 @@ * @param led2Name Pin to control the led1 status. * @param led3Name Pin to control the led1 status. */ - X_NUCLEO_NFC01A1(I2C &devI2C,Nfc::gpoEventCallback eventCallback, + X_NUCLEO_NFC01A1(I2C &devI2C,M24SR::gpoEventCallback eventCallback, const PinName &gpoName, const PinName &RFDisableName, const PinName &led1Name, const PinName &led2Name, const PinName &led3Name): @@ -98,7 +98,7 @@ * @param led3Name Pin to control the led1 status. */ static X_NUCLEO_NFC01A1* Instance(I2C &devI2C, - Nfc::gpoEventCallback eventCallback=NULL, + M24SR::gpoEventCallback eventCallback=NULL, const PinName &gpoName = DEFAULT_GPO_PIN, const PinName &RFDisableName = DEFAULT_RF_DISABLE_PIN, const PinName &led1Name = DEFAULT_LED1_PIN,

X-NUCLEO-NFC01A1 Dynamic NFC Tag