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!

Committer:
AppNearMe
Date:
Wed Nov 07 18:18:52 2012 +0000
Revision:
10:2af578c635cd
Updated library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AppNearMe 10:2af578c635cd 1 /*
AppNearMe 10:2af578c635cd 2 transceiver.h
AppNearMe 10:2af578c635cd 3 Copyright (c) Donatien Garnier 2012
AppNearMe 10:2af578c635cd 4 donatien.garnier@appnearme.com
AppNearMe 10:2af578c635cd 5 http://www.appnearme.com/
AppNearMe 10:2af578c635cd 6 */
AppNearMe 10:2af578c635cd 7
AppNearMe 10:2af578c635cd 8 #ifndef TRANSCEIVER_H_
AppNearMe 10:2af578c635cd 9 #define TRANSCEIVER_H_
AppNearMe 10:2af578c635cd 10
AppNearMe 10:2af578c635cd 11 #ifdef __cplusplus
AppNearMe 10:2af578c635cd 12 extern "C" {
AppNearMe 10:2af578c635cd 13 #endif
AppNearMe 10:2af578c635cd 14
AppNearMe 10:2af578c635cd 15 #include "core/fwk.h"
AppNearMe 10:2af578c635cd 16 #include "core/buffer.h"
AppNearMe 10:2af578c635cd 17 #include "protocols.h"
AppNearMe 10:2af578c635cd 18
AppNearMe 10:2af578c635cd 19 //Must be implemented
AppNearMe 10:2af578c635cd 20
AppNearMe 10:2af578c635cd 21 int transceiver_init(void);
AppNearMe 10:2af578c635cd 22 int transceiver_set_protocol(RF_PROTOCOL protocol);
AppNearMe 10:2af578c635cd 23
AppNearMe 10:2af578c635cd 24 int transceiver_transceive(RF_PROTOCOL protocol, buffer* pDataOutBuf, buffer* pDataInBuf, RF_OPTION options /*= RF_OPTION_NONE*/);
AppNearMe 10:2af578c635cd 25
AppNearMe 10:2af578c635cd 26 int transceiver_set_RF_field(bool on);
AppNearMe 10:2af578c635cd 27
AppNearMe 10:2af578c635cd 28 int transceiver_target_anticollision(buffer* pUID, /*TODO: buffer* pParams [SAK/etc], */ int timeout);
AppNearMe 10:2af578c635cd 29
AppNearMe 10:2af578c635cd 30 int transceiver_target_halt(void);
AppNearMe 10:2af578c635cd 31
AppNearMe 10:2af578c635cd 32 int transceiver_reader_anticollision(buffer* pUID, buffer* pParams, int timeout);
AppNearMe 10:2af578c635cd 33
AppNearMe 10:2af578c635cd 34 int transceiver_free(void);
AppNearMe 10:2af578c635cd 35
AppNearMe 10:2af578c635cd 36 #ifdef __cplusplus
AppNearMe 10:2af578c635cd 37 }
AppNearMe 10:2af578c635cd 38 #endif
AppNearMe 10:2af578c635cd 39
AppNearMe 10:2af578c635cd 40 #endif /* TRANSCEIVER_H_ */