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
transceiver.h
00001 /* 00002 transceiver.h 00003 Copyright (c) Donatien Garnier 2012 00004 donatien.garnier@appnearme.com 00005 http://www.appnearme.com/ 00006 */ 00007 00008 #ifndef TRANSCEIVER_H_ 00009 #define TRANSCEIVER_H_ 00010 00011 #ifdef __cplusplus 00012 extern "C" { 00013 #endif 00014 00015 #include "core/fwk.h" 00016 #include "core/buffer.h" 00017 #include "protocols.h" 00018 00019 //Must be implemented 00020 00021 int transceiver_init(void); 00022 int transceiver_set_protocol(RF_PROTOCOL protocol); 00023 00024 int transceiver_transceive(RF_PROTOCOL protocol, buffer* pDataOutBuf, buffer* pDataInBuf, RF_OPTION options /*= RF_OPTION_NONE*/); 00025 00026 int transceiver_set_RF_field(bool on); 00027 00028 int transceiver_target_anticollision(buffer* pUID, /*TODO: buffer* pParams [SAK/etc], */ int timeout); 00029 00030 int transceiver_target_halt(void); 00031 00032 int transceiver_reader_anticollision(buffer* pUID, buffer* pParams, int timeout); 00033 00034 int transceiver_free(void); 00035 00036 #ifdef __cplusplus 00037 } 00038 #endif 00039 00040 #endif /* TRANSCEIVER_H_ */
Generated on Tue Jul 12 2022 17:28:36 by 1.7.2