libnfc
1.7.0-rc7
|
Provide a small API to ease emulation in libnfc. More...
Go to the source code of this file.
Functions | |
int | nfc_emulate_target (nfc_device *pnd, struct nfc_emulator *emulator, const int timeout) |
Emulate a target. More... | |
Provide a small API to ease emulation in libnfc.
Definition in file nfc-emulation.c.
int nfc_emulate_target | ( | nfc_device * | pnd, |
struct nfc_emulator * | emulator, | ||
const int | timeout | ||
) |
Emulate a target.
pnd | nfc_device struct pointer that represents currently used device |
emulator | struct point that handles input/output functions |
If timeout equals to 0, the function blocks indefinitely (until an error is raised or function is completed) If timeout equals to -1, the default timeout will be used
Definition at line 47 of file nfc-emulation.c.