Skip to content

Commit

Permalink
Added support for extended frames, fixes adafruit#38 adafruit#39 #5
Browse files Browse the repository at this point in the history
Added support for extended frames, fixes adafruit#38 adafruit#39 #5
  • Loading branch information
solhuebner authored Aug 21, 2020
1 parent 8ddae6f commit f59b2d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Adafruit_PN532.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define PN532_STARTCODE1 (0x00)
#define PN532_STARTCODE2 (0xFF)
#define PN532_POSTAMBLE (0x00)
#define PN532_EXTENDED_FRAME_FIXED_VALUE (0xFF)

#define PN532_HOSTTOPN532 (0xD4)
#define PN532_PN532TOHOST (0xD5)
Expand Down Expand Up @@ -172,7 +173,7 @@ class Adafruit_PN532 {
uint8_t cardbaudrate, uint8_t *uid, uint8_t *uidLength,
uint16_t timeout = 0); // timeout 0 means no timeout - will block forever.
bool inDataExchange(uint8_t *send, uint8_t sendLength, uint8_t *response,
uint8_t *responseLength);
uint16_t *responseLength);
bool inListPassiveTarget();
uint8_t AsTarget();
uint8_t getDataTarget(uint8_t *cmd, uint8_t *cmdlen);
Expand Down Expand Up @@ -213,7 +214,7 @@ class Adafruit_PN532 {
int8_t _inListedTag; // Tg number of inlisted tag.

// Low level communication functions that handle both SPI and I2C.
void readdata(uint8_t *buff, uint8_t n);
void readdata(uint8_t *buff, uint16_t n);
void writecommand(uint8_t *cmd, uint8_t cmdlen);
bool isready();
bool waitready(uint16_t timeout);
Expand Down

0 comments on commit f59b2d4

Please sign in to comment.