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: m24sr/m24sr_class.cpp
- Revision:
- 25:caa16fd0e50b
- Parent:
- 24:9f98eafa2d39
- Child:
- 26:2090378b0b51
--- a/m24sr/m24sr_class.cpp Tue Feb 02 16:04:24 2016 +0000
+++ b/m24sr/m24sr_class.cpp Wed Feb 03 08:52:54 2016 +0000
@@ -73,8 +73,8 @@
/** value returned by the NFC chip when a command is successfully completed */
#define NFC_COMMAND_SUCCESS 0x9000
-//TODO remove errchek from the async function
-/** call the fCall funtion and check that the return status is NFC_SUCCESS,
+
+/** call the fCall function and check that the return status is NFC_SUCCESS,
* otherwise return the error status*/
#define errchk(fCall) {\
const NFC_StatusTypeDef status = (fCall); \
@@ -149,7 +149,7 @@
}
/**
- * @brief This functions creates an I block command according to the structures CommandStructure and data->command.
+ * @brief This functions creates an I block command according to the structures CommandStructure and Command.
* @param Command : structure which contains the field of the different parameters
* @param CommandStructure : structure of the command
* @param NbByte : number of bytes of the command

X-NUCLEO-NFC01A1 Dynamic NFC Tag