PN532 Driver library This library provides an abstract API to drive the pn532 nfc chip, with I2C/HSU/SPI interface. Its based on the Seeed Studio's Arduino version.
Dependents: PN532_ReadUid Nfctest2
PN532/PN532_debug.h@0:db8030e71f55, 2016-09-13 (annotated)
- Committer:
- dotnfc
- Date:
- Tue Sep 13 06:01:19 2016 +0000
- Revision:
- 0:db8030e71f55
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dotnfc | 0:db8030e71f55 | 1 | #ifndef __DEBUG_H__ |
dotnfc | 0:db8030e71f55 | 2 | #define __DEBUG_H__ |
dotnfc | 0:db8030e71f55 | 3 | |
dotnfc | 0:db8030e71f55 | 4 | #define DEBUG |
dotnfc | 0:db8030e71f55 | 5 | |
dotnfc | 0:db8030e71f55 | 6 | #include <stdlib.h> |
dotnfc | 0:db8030e71f55 | 7 | #include "Arduino.h" |
dotnfc | 0:db8030e71f55 | 8 | |
dotnfc | 0:db8030e71f55 | 9 | #ifdef DEBUG |
dotnfc | 0:db8030e71f55 | 10 | #define DMSG(args...) printf (args) |
dotnfc | 0:db8030e71f55 | 11 | #define DMSG_STR(str) printf (str) |
dotnfc | 0:db8030e71f55 | 12 | #define DMSG_HEX(num) printf (" %02X", num) |
dotnfc | 0:db8030e71f55 | 13 | #define DMSG_INT(num) printf (" %d ", num) |
dotnfc | 0:db8030e71f55 | 14 | #else |
dotnfc | 0:db8030e71f55 | 15 | #define DMSG(args...) |
dotnfc | 0:db8030e71f55 | 16 | #define DMSG_STR(str) |
dotnfc | 0:db8030e71f55 | 17 | #define DMSG_HEX(num) |
dotnfc | 0:db8030e71f55 | 18 | #define DMSG_INT(num) |
dotnfc | 0:db8030e71f55 | 19 | #endif |
dotnfc | 0:db8030e71f55 | 20 | |
dotnfc | 0:db8030e71f55 | 21 | #endif |