nfc_start_iso14443_4_emulation()

Start ISO 14443-4 emulation.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_start_iso14443_4_emulation(const nfc_iso14443_4_card_t *card)

Arguments:

card

The structure containing the information that will be emulated

Library:

libnfc

Description:

The nfc_start_iso14443_4_emulation() function registers card emulation information within the NFC service. It also starts the emulation when the application is in the foreground. Only one ISO 14443-4 emulation is allowed at one time, and emulation is only active while this application is in the foreground. If an application is placed in the background, the NFC service automatically stops the appplication's iso14443-4 emulation.

Once the application is placed in the foreground again, the NFC service resumes emulation. If an application attempts to call the nfc_start_iso14443_4_emulation() function while it is already emulating ISO 14443-4, the second call will fail with NFC_RESULT_LIMITATION_EXCEEDED.

During emulation, the following events can occur:

Returns:

NFC_RESULT_SUCCESS, or one of the following: