libnfc  1.7.0-rc7
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_modulation_type value to string. More...
 

Detailed Description

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

Function Documentation

const char* str_nfc_baud_rate ( const nfc_baud_rate  nbr)

Convert nfc_baud_rate value to string.

Returns
Returns nfc baud rate
Parameters
\anfc_baud_rate to convert

Definition at line 1231 of file nfc.c.

const char* str_nfc_modulation_type ( const nfc_modulation_type  nmt)

Convert nfc_modulation_type value to string.

Returns
Returns nfc modulation type
Parameters
\anfc_modulation_type to convert

Definition at line 1260 of file nfc.c.

int str_nfc_target ( char **  buf,
const nfc_target pnt,
bool  verbose 
)

Convert nfc_modulation_type value 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
ntnfc_target struct to print
bufpointer where string will be allocated, then nfc target information printed
Warning
*buf must be freed using nfc_free()

Definition at line 1301 of file nfc.c.