AppNearMe µNFC stack for the NXP PN532 chip License: You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!

Dependents:   IOT_sensor_nfc AppNearMe_MuNFC_PN532_Test p2p_nfc_test NFCMoodLamp ... more

License

You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!

PN532/munfc/ndef/appnearme_ndef.h

Committer:
AppNearMe
Date:
2013-01-15
Revision:
13:6f98851e025b
Parent:
11:5be631376e5b

File content as of revision 13:6f98851e025b:

/*
    appnearme_ndef.h 
  Copyright (c) Donatien Garnier 2012
  donatien.garnier@appnearme.com
  http://www.appnearme.com/
*/


#ifndef APPNEARME_NDEF_H_
#define APPNEARME_NDEF_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "core/fwk.h"
#include "core/buffer.h"

#include "appnearme_ndef_tlv.h"

#define APPNEARME_HASH_SIZE 16

typedef void (*appnearme_ndef_callback)(tlv_list* payload, void* param);

int appnearme_ndef_init(char app_hash[APPNEARME_HASH_SIZE], uint32_t version);

void appnearme_ndef_register_encode_callback(appnearme_ndef_callback cb, void* param);

void appnearme_ndef_register_decode_callback(appnearme_ndef_callback cb, void* param);

int appnearme_ndef_encode_message(buffer* pMem);

int appnearme_ndef_decode_message(buffer* pMem);

#ifdef __cplusplus
}
#endif

#endif /* APPNEARME_NDEF_H_ */