The functionnality documented below allow to retreive some information in text format.
◆ str_nfc_baud_rate()
Convert nfc_baud_rate value to string.
- Returns
- Returns nfc baud rate
- Parameters
-
nbr | nfc_baud_rate to convert |
Definition at line 1359 of file nfc.c.
◆ str_nfc_modulation_type()
Convert nfc_modulation_type value to string.
- Returns
- Returns nfc modulation type
- Parameters
-
nmt | nfc_modulation_type to convert |
Definition at line 1383 of file nfc.c.
◆ str_nfc_target()
int str_nfc_target |
( |
char ** |
buf, |
|
|
const nfc_target * |
pnt, |
|
|
bool |
verbose |
|
) |
| |
Convert nfc_target content to string.
- Returns
- Upon successful return, this function returns the number of characters printed (excluding the null byte used to end output to strings), otherwise returns libnfc's error code (negative value)
- Parameters
-
pnt | nfc_target struct pointer to print |
buf | pointer where string will be allocated, then nfc target information printed |
verbose | false for essential, true for detailed, human-readable, information |
- Warning
- *buf must be freed using nfc_free()
Definition at line 1421 of file nfc.c.