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

LibGeo_Public_Functions

LibGeo_Public_Functions
[LibNFC_FORUM]

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

Functions

uint16_t NDEF_ReadGeo (sRecordInfo *pRecordStruct, sGeoInfo *pGeoStruct)
 This fonction read NDEF and retrieve Geo information if any.
uint16_t NDEF_WriteGeo (sGeoInfo *pGeoStruct)
 This fonction write the NDEF file with the geolocation data given in the structure.

Detailed Description

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


Function Documentation

uint16_t NDEF_ReadGeo ( sRecordInfo *  pRecordStruct,
sGeoInfo *  pGeoStruct 
)

This fonction read NDEF and retrieve Geo information if any.

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

Definition at line 150 of file lib_NDEF_Geo.c.

uint16_t NDEF_WriteGeo ( sGeoInfo *  pGeoStruct )

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

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

Definition at line 201 of file lib_NDEF_Geo.c.