ST Americas mbed Team / lib_NFC_NDEF

Dependents:   Nucleo_NFC_Example I2C_NFC_Master Print_Entire_Nucleo_NFC01A1_Memory

Fork of lib_NDEF by Enrico Gregoratto

Embed: (wiki syntax)

« Back to documentation index

LibMyApp_Public_Functions

LibMyApp_Public_Functions
[LibNFC_FORUM]

This file is used to manage proprietary NDEF (stored or loaded in tag) More...

Functions

uint16_t NDEF_ReadMyApp (sRecordInfo *pRecordStruct, sMyAppInfo *pMyAppStruct)
 This fonction read NDEF and retrieve Application information if any.
uint16_t NDEF_WriteMyApp (sMyAppInfo *pMyAppStruct)
 This fonction write the NDEF file with the Application data given in the structure.

Detailed Description

This file is used to manage proprietary NDEF (stored or loaded in tag)


Function Documentation

uint16_t NDEF_ReadMyApp ( sRecordInfo *  pRecordStruct,
sMyAppInfo *  pMyAppStruct 
)

This fonction read NDEF and retrieve Application information if any.

Parameters:
pRecordStruct: Pointer on the record structure
pMyAppStruct: pointer on the structure to fill
Return values:
SUCCESS: Application information from NDEF have been retrieved
ERROR: Not able to retrieve Application information

Definition at line 133 of file lib_NDEF_MyApp.c.

uint16_t NDEF_WriteMyApp ( sMyAppInfo *  pMyAppStruct )

This fonction write the NDEF file with the Application data given in the structure.

Only used for debug purpose in this firmware version

Parameters:
pMyAppStruct: pointer on structure that contain the application information
Return values:
SUCCESS: the function is succesful
ERROR: Not able to store NDEF file inside tag.

Definition at line 157 of file lib_NDEF_MyApp.c.