PN532 NFC library for Seeed Studio's NFC Shield

Fork of PN532 by Yihui Xiong

Revision:
3:4189a10038e6
Parent:
1:b8cab5222fd0
--- a/PN532_SPI.h	Thu Oct 17 06:51:32 2013 +0000
+++ b/PN532_SPI.h	Thu Nov 21 04:30:49 2013 +0000
@@ -13,7 +13,7 @@
 
     virtual void begin();
     virtual void wakeup();
-    virtual int8_t writeCommand(const uint8_t buf[], uint8_t len);
+    virtual int8_t writeCommand(const uint8_t *header, uint8_t hlen, const uint8_t *body, uint8_t blen);
     virtual int16_t readResponse(uint8_t buf[], uint8_t len, uint16_t timeout);
 
 private:
@@ -22,7 +22,7 @@
     uint8_t     command;
 
     bool isReady();
-    void writeFrame(const uint8_t buf[], uint8_t len);
+    void writeFrame(const uint8_t *header, uint8_t hlen, const uint8_t *body, uint8_t blen);
     int8_t readAckFrame();
 
     inline void write(uint8_t data) {