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.
Arduino.h@2:ae258f195bbd, 2020-06-26 (annotated)
- Committer:
- maximemau
- Date:
- Fri Jun 26 09:16:19 2020 +0000
- Revision:
- 2:ae258f195bbd
- Parent:
- 0:db8030e71f55
lib_pn532
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dotnfc | 0:db8030e71f55 | 1 | |
dotnfc | 0:db8030e71f55 | 2 | #ifndef __ARDUINO_H__ |
dotnfc | 0:db8030e71f55 | 3 | #define __ARDUINO_H__ |
dotnfc | 0:db8030e71f55 | 4 | |
dotnfc | 0:db8030e71f55 | 5 | #include "mbed.h" |
dotnfc | 0:db8030e71f55 | 6 | #include "HardwareSerial.h" |
dotnfc | 0:db8030e71f55 | 7 | |
dotnfc | 0:db8030e71f55 | 8 | |
dotnfc | 0:db8030e71f55 | 9 | /** |
dotnfc | 0:db8030e71f55 | 10 | * \brief Returns the number of milliseconds since the Arduino board began running the current program. |
dotnfc | 0:db8030e71f55 | 11 | * |
dotnfc | 0:db8030e71f55 | 12 | * This number will overflow (go back to zero), after approximately 50 days. |
dotnfc | 0:db8030e71f55 | 13 | * |
dotnfc | 0:db8030e71f55 | 14 | * \return Number of milliseconds since the program started (uint32_t) |
dotnfc | 0:db8030e71f55 | 15 | */ |
dotnfc | 0:db8030e71f55 | 16 | //uint32_t millis( void ); |
dotnfc | 0:db8030e71f55 | 17 | |
dotnfc | 0:db8030e71f55 | 18 | |
dotnfc | 0:db8030e71f55 | 19 | /** |
dotnfc | 0:db8030e71f55 | 20 | * \brief Pauses the program for the amount of time (in miliseconds) specified as parameter. |
dotnfc | 0:db8030e71f55 | 21 | * (There are 1000 milliseconds in a second.) |
dotnfc | 0:db8030e71f55 | 22 | * |
dotnfc | 0:db8030e71f55 | 23 | * \param dwMs the number of milliseconds to pause (uint32_t) |
dotnfc | 0:db8030e71f55 | 24 | */ |
dotnfc | 0:db8030e71f55 | 25 | //inline void delay( uint32_t dwMs ) ; |
dotnfc | 0:db8030e71f55 | 26 | #define delay wait_ms |
dotnfc | 0:db8030e71f55 | 27 | |
dotnfc | 0:db8030e71f55 | 28 | |
dotnfc | 0:db8030e71f55 | 29 | /*============================================================================== |
dotnfc | 0:db8030e71f55 | 30 | * \brief arduino like 'tone ()' |
dotnfc | 0:db8030e71f55 | 31 | */ |
dotnfc | 0:db8030e71f55 | 32 | void tone(PwmOut &buz, long frequency); |
dotnfc | 0:db8030e71f55 | 33 | |
dotnfc | 0:db8030e71f55 | 34 | #endif // __ARDUINO_H__ |