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:
10:2af578c635cd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PN532/munfc/drv/transceiver.h	Wed Nov 07 18:18:52 2012 +0000
@@ -0,0 +1,40 @@
+/*
+  transceiver.h
+  Copyright (c) Donatien Garnier 2012
+  donatien.garnier@appnearme.com
+  http://www.appnearme.com/
+*/
+
+#ifndef TRANSCEIVER_H_
+#define TRANSCEIVER_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "core/fwk.h"
+#include "core/buffer.h"
+#include "protocols.h"
+
+//Must be implemented
+
+int transceiver_init(void);
+int transceiver_set_protocol(RF_PROTOCOL protocol);
+
+int transceiver_transceive(RF_PROTOCOL protocol, buffer* pDataOutBuf, buffer* pDataInBuf, RF_OPTION options /*= RF_OPTION_NONE*/);
+
+int transceiver_set_RF_field(bool on);
+
+int transceiver_target_anticollision(buffer* pUID, /*TODO: buffer* pParams [SAK/etc], */ int timeout);
+
+int transceiver_target_halt(void);
+
+int transceiver_reader_anticollision(buffer* pUID, buffer* pParams, int timeout);
+
+int transceiver_free(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* TRANSCEIVER_H_ */