nrfxlib API 2.8.99
|
int nfc_t4t_setup | ( | nfc_t4t_callback_t | callback, |
void * | context ) |
#include <nfc/include/nfc_t4t_lib.h>
Register the application callback for event signaling.
The callback will be called by NFCLib to notify the application of relevant events. It will be called from the HAL_NFC callback context. The library support 3 different Modes of Emulation:
The default mode is Raw ISO-Dep mode. The two other NDEF T4T modes are activated through the corresponding nfc_t4t_ndef_rwpayload_set/ nfc_t4t_ndef_staticpayload_set functions. The mode is locked in with a call to nfc_t4t_emulation_start.
callback | Function pointer to the callback. |
context | Pointer to a memory area used by the callback for execution (optional). |
0 | Success. |
-NRF_EINVAL | Invalid argument (e.g. wrong data length, NULL pointer)) |
-NRF_EOPNOTSUPP | If emulation is in running state. |