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!

Revision:
11:5be631376e5b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PN532/munfc/ndef/appnearme_ndef.h	Wed Nov 07 18:19:09 2012 +0000
@@ -0,0 +1,39 @@
+/*
+    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_ */