Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PN532 by
PN532Interface Class Reference
The PN532Interface class. More...
#include <PN532Interface.h>
Inherited by PN532_SPI.
Public Member Functions | |
| virtual int8_t | writeCommand (const uint8_t *header, uint8_t hlen, const uint8_t *body=0, uint8_t blen=0)=0 |
| write a command and check ack | |
| virtual int16_t | readResponse (uint8_t buf[], uint8_t len, uint16_t timeout=1000)=0 |
| read the response of a command, strip prefix and suffix | |
Detailed Description
The PN532Interface class.
Definition at line 30 of file PN532Interface.h.
Member Function Documentation
| virtual int16_t readResponse | ( | uint8_t | buf[], |
| uint8_t | len, | ||
| uint16_t | timeout = 1000 |
||
| ) | [pure virtual] |
read the response of a command, strip prefix and suffix
- Parameters:
-
buf to contain the response data len lenght to read timeout max time to wait, 0 means no timeout
- Returns:
- >=0 length of response without prefix and suffix <0 failed to read response
| virtual int8_t writeCommand | ( | const uint8_t * | header, |
| uint8_t | hlen, | ||
| const uint8_t * | body = 0, |
||
| uint8_t | blen = 0 |
||
| ) | [pure virtual] |
write a command and check ack
- Parameters:
-
header packet header hlen length of header body packet body blen length of body
- Returns:
- 0 success not 0 failed
Generated on Tue Jul 12 2022 16:40:03 by
1.7.2
