The functionnality documented below allow to access to special data as device name or device connstring.
◆ nfc_device_get_connstring()
const char* nfc_device_get_connstring |
( |
nfc_device * |
pnd | ) |
|
Returns the device connection string.
- Returns
- Returns a string with the device connstring
- Parameters
-
pnd | nfc_device struct pointer that represent currently used device |
Definition at line 1221 of file nfc.c.
◆ nfc_device_get_name()
const char* nfc_device_get_name |
( |
nfc_device * |
pnd | ) |
|
Returns the device name.
- Returns
- Returns a string with the device name
- Parameters
-
pnd | nfc_device struct pointer that represent currently used device |
Definition at line 1209 of file nfc.c.
◆ nfc_device_get_supported_baud_rate()
Get supported baud rates (initiator mode).
- Returns
- Returns 0 on success, otherwise returns libnfc's error code (negative value)
- Parameters
-
pnd | nfc_device struct pointer that represent currently used device |
nmt | nfc_modulation_type. |
supported_br | pointer of nfc_baud_rate array. |
Definition at line 1249 of file nfc.c.
◆ nfc_device_get_supported_baud_rate_target_mode()
Get supported baud rates for target mode.
- Returns
- Returns 0 on success, otherwise returns libnfc's error code (negative value)
- Parameters
-
pnd | nfc_device struct pointer that represent currently used device |
nmt | nfc_modulation_type. |
supported_br | pointer of nfc_baud_rate array. |
Definition at line 1263 of file nfc.c.
◆ nfc_device_get_supported_modulation()
Get supported modulations.
- Returns
- Returns 0 on success, otherwise returns libnfc's error code (negative value)
- Parameters
-
pnd | nfc_device struct pointer that represent currently used device |
mode | nfc_mode. |
supported_mt | pointer of nfc_modulation_type array. |
Definition at line 1235 of file nfc.c.
◆ nfc_device_validate_modulation()
Validate combination of modulation and baud rate on the currently used device.
- Returns
- Returns 0 on success, otherwise returns libnfc's error code (negative value)
- Parameters
-
Definition at line 1277 of file nfc.c.