Detailed Description
Most libnfc functions return 0 on success or one of error codes defined on failure.
Define Documentation
Device's internal chip error
Definition at line 221 of file nfc.h.
Operation not supported by device
Definition at line 171 of file nfc.h.
Invalid argument(s)
Definition at line 166 of file nfc.h.
Input / output error, device may not be usable anymore without re-open it
Definition at line 161 of file nfc.h.
MIFARE Classic: authentication failed
Definition at line 211 of file nfc.h.
Not (yet) implemented
Definition at line 196 of file nfc.h.
No such device
Definition at line 176 of file nfc.h.
Operation aborted (by user)
Definition at line 191 of file nfc.h.
Buffer overflow
Definition at line 181 of file nfc.h.
Error while RF transmission
Definition at line 206 of file nfc.h.
Software error (allocation, file/pipe creation, etc.)
Definition at line 216 of file nfc.h.
Target released
Definition at line 201 of file nfc.h.
Operation timed out
Definition at line 186 of file nfc.h.
Success (no error)
Definition at line 156 of file nfc.h.
Function Documentation
Returns last error occured on a nfc_device.
- Returns:
- Returns an integer that represents to libnfc's error code.
- Parameters:
-
pnd | nfc_device struct pointer that represent currently used device |
Definition at line 1150 of file nfc.c.
Display the last error occured on a nfc_device.
- Parameters:
-
pnd | nfc_device struct pointer that represent currently used device |
pcString | a string |
Definition at line 1138 of file nfc.c.
Return the last error string.
- Returns:
- Returns a string
- Parameters:
-
pnd | nfc_device struct pointer that represent currently used device |
Definition at line 1103 of file nfc.c.
Renders the last error in pcStrErrBuf for a maximum size of szBufLen chars.
- Returns:
- Returns 0 upon success
- Parameters:
-
pnd | nfc_device struct pointer that represent currently used device |
pcStrErrBuf | a string that contains the last error. |
szBufLen | size of buffer |
Definition at line 1126 of file nfc.c.