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:
13:840a9c7f90b9
Parent:
0:969a2be49f41
Child:
15:67e136b6921d
--- a/m24sr/m24sr.h	Thu Jan 14 08:41:19 2016 +0000
+++ b/m24sr/m24sr.h	Fri Jan 15 10:32:47 2016 +0000
@@ -271,8 +271,10 @@
 extern NFC_StatusTypeDef M24SR_IO_ReceiveI2Cresponse(void *handle,
 		uint8_t NbByte, uint8_t *pBuffer);
 extern NFC_StatusTypeDef M24SR_IO_PollI2C(void *handle);
-extern void M24SR_IO_GPO_ReadPin(void *handle, GPIO_PinState *pPinState);
-extern void M24SR_IO_RFDIS_WritePin(void *handle, GPIO_PinState PinState);
+//extern void M24SR_IO_GPO_ReadPin(void *handle, GPIO_PinState *pPinState);
+//extern void M24SR_IO_RFDIS_WritePin(void *handle, GPIO_PinState PinState);
+extern void M24SR_IO_GPO_ReadPin(void *handle, uint8_t *pPinState);
+extern void M24SR_IO_RFDIS_WritePin(void *handle, uint8_t PinState);
 extern void M24SR_IO_SetI2CSynchroMode(void *handle,
 		M24SR_WAITINGTIME_MGMT mode);