libnfc  1.8.0
Functions
Special data accessors

Functions

const char * nfc_device_get_name (nfc_device *pnd)
 Returns the device name. More...
 
const char * nfc_device_get_connstring (nfc_device *pnd)
 Returns the device connection string. More...
 
int nfc_device_get_supported_modulation (nfc_device *pnd, const nfc_mode mode, const nfc_modulation_type **const supported_mt)
 Get supported modulations. More...
 
int nfc_device_get_supported_baud_rate (nfc_device *pnd, const nfc_modulation_type nmt, const nfc_baud_rate **const supported_br)
 Get supported baud rates (initiator mode). More...
 
int nfc_device_get_supported_baud_rate_target_mode (nfc_device *pnd, const nfc_modulation_type nmt, const nfc_baud_rate **const supported_br)
 Get supported baud rates for target mode. More...
 
static int nfc_device_validate_modulation (nfc_device *pnd, const nfc_mode mode, const nfc_modulation *nm)
 Validate combination of modulation and baud rate on the currently used device. More...
 

Detailed Description

The functionnality documented below allow to access to special data as device name or device connstring.

Function Documentation

◆ 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
pndnfc_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
pndnfc_device struct pointer that represent currently used device

Definition at line 1209 of file nfc.c.

◆ nfc_device_get_supported_baud_rate()

int nfc_device_get_supported_baud_rate ( nfc_device pnd,
const nfc_modulation_type  nmt,
const nfc_baud_rate **const  supported_br 
)

Get supported baud rates (initiator mode).

Returns
Returns 0 on success, otherwise returns libnfc's error code (negative value)
Parameters
pndnfc_device struct pointer that represent currently used device
nmtnfc_modulation_type.
supported_brpointer of nfc_baud_rate array.

Definition at line 1249 of file nfc.c.

◆ nfc_device_get_supported_baud_rate_target_mode()

int nfc_device_get_supported_baud_rate_target_mode ( nfc_device pnd,
const nfc_modulation_type  nmt,
const nfc_baud_rate **const  supported_br 
)

Get supported baud rates for target mode.

Returns
Returns 0 on success, otherwise returns libnfc's error code (negative value)
Parameters
pndnfc_device struct pointer that represent currently used device
nmtnfc_modulation_type.
supported_brpointer of nfc_baud_rate array.

Definition at line 1263 of file nfc.c.

◆ nfc_device_get_supported_modulation()

int nfc_device_get_supported_modulation ( nfc_device pnd,
const nfc_mode  mode,
const nfc_modulation_type **const  supported_mt 
)

Get supported modulations.

Returns
Returns 0 on success, otherwise returns libnfc's error code (negative value)
Parameters
pndnfc_device struct pointer that represent currently used device
modenfc_mode.
supported_mtpointer of nfc_modulation_type array.

Definition at line 1235 of file nfc.c.

◆ nfc_device_validate_modulation()

static int nfc_device_validate_modulation ( nfc_device pnd,
const nfc_mode  mode,
const nfc_modulation nm 
)
static

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
pndnfc_device struct pointer that represent currently used device
modenfc_mode.
nmnfc_modulation.

Definition at line 1277 of file nfc.c.