libnfc  1.8.0
Functions
To-string converters

Functions

const char * str_nfc_baud_rate (const nfc_baud_rate nbr)
 Convert nfc_baud_rate value to string. More...
 
const char * str_nfc_modulation_type (const nfc_modulation_type nmt)
 Convert nfc_modulation_type value to string. More...
 
int str_nfc_target (char **buf, const nfc_target *pnt, bool verbose)
 Convert nfc_target content to string. More...
 

Detailed Description

The functionnality documented below allow to retreive some information in text format.

Function Documentation

◆ str_nfc_baud_rate()

const char* str_nfc_baud_rate ( const nfc_baud_rate  nbr)

Convert nfc_baud_rate value to string.

Returns
Returns nfc baud rate
Parameters
nbrnfc_baud_rate to convert

Definition at line 1359 of file nfc.c.

◆ str_nfc_modulation_type()

const char* str_nfc_modulation_type ( const nfc_modulation_type  nmt)

Convert nfc_modulation_type value to string.

Returns
Returns nfc modulation type
Parameters
nmtnfc_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
pntnfc_target struct pointer to print
bufpointer where string will be allocated, then nfc target information printed
verbosefalse for essential, true for detailed, human-readable, information
Warning
*buf must be freed using nfc_free()

Definition at line 1421 of file nfc.c.