### nfcSnep_startServer Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Starts the SNEP server. ```APIDOC ## nfcSnep_startServer ### Description Starts the SNEP server. ### Function Signature `void nfcSnep_startServer(void);` ``` -------------------------------- ### nfcSnep_startServer Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Starts a SNEP server to receive SNEP messages. This function requires a callback to handle incoming messages. ```APIDOC ## nfcSnep_startServer ### Description Starts a SNEP server to receive SNEP messages. The provided callback function will be invoked when a SNEP message is received. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **server_callback** (*nfcSnepServerCallback_t**) - Required - Pointer to the structure containing the SNEP server callback function. ### Request Example ```c nfcSnepServerCallback_t myServerCallback; // Initialize myServerCallback structure nfcSnep_startServer(&myServerCallback); ``` ### Response #### Success Response (int) - Returns 0 on success, or a negative value on error. #### Response Example ``` 0 ``` ``` -------------------------------- ### nfcSnep_startServer Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Starts a SNEP server to receive SNEP messages. This function initializes the SNEP server functionality. ```APIDOC ## nfcSnep_startServer ### Description Start a snep server to receive snep message. ### Parameters - **server_callback** (nfcSnepServerCallback_t *) - SNEP server callback functions. ### Returns - 0 if success ``` -------------------------------- ### nfcFactory_PrbsTestStart Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h.html Starts RF generation for a specified RF technology and bit rate. ```APIDOC ## nfcFactory_PrbsTestStart ### Description Test function start RF generation for RF technology and bit rate. RF technology and bit rate are sent as parameter to the API. ### Function Signature `int nfcFactory_PrbsTestStart(nfcFactory_PRBSTech_t tech, nfcFactory_PRBSBitrate_t bitrate)` ### Parameters * **tech** (`nfcFactory_PRBSTech_t`) - The RF technology to use for the PRBS test. * **bitrate** (`nfcFactory_PRBSBitrate_t`) - The bit rate for the PRBS test. ### Returns An integer indicating the success or failure of the operation. ``` -------------------------------- ### nfcFactory_PrbsTestStart Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h_source.html Starts a Pseudo-Random Binary Sequence (PRBS) test on the NFC controller. This test is used to verify the integrity of the data transmission. ```APIDOC ## nfcFactory_PrbsTestStart ### Description Starts a PRBS test with the specified technology and bitrate. ### Method `int nfcFactory_PrbsTestStart([nfcFactory_PRBSTech_t tech](linux__nfc__factory__api_8h.html#af507e085fb991b2ef57d57304eaa9093), [nfcFactory_PRBSBitrate_t bitrate](linux__nfc__factory__api_8h.html#a0bbddf1386f0100bcc4bfeba426a3344))` ### Parameters * **tech** ([nfcFactory_PRBSTech_t]): The NFC technology to use for the PRBS test. * **bitrate** ([nfcFactory_PRBSBitrate_t]): The bitrate for the PRBS test. ### Return Value Returns 0 on success, or a negative value on error. ``` -------------------------------- ### nfcFactory_PrbsTestStop Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h_source.html Stops RF generation for RF technology that was previously started by phNxpNciHal_PrbsTestStart. ```APIDOC ## nfcFactory_PrbsTestStop ### Description Stops RF generation for RF technology started by phNxpNciHal_PrbsTestStart. ### Method int ### Parameters None ### Return Value Returns 0 on success, negative on error. ``` -------------------------------- ### nfcFactory_PrbsTestStop Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h.html Stops RF generation for the RF technology started by nfcFactory_PrbsTestStart. ```APIDOC ## nfcFactory_PrbsTestStop ### Description Test function stop RF generation for RF technology started by phNxpNciHal_PrbsTestStart. ### Function Signature `int nfcFactory_PrbsTestStop(void)` ### Returns An integer indicating the success or failure of the operation. ``` -------------------------------- ### NFC Factory Test Functions Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Functions for performing factory tests, including antenna self-test, getting firmware version, and starting/stopping PRBS tests. ```APIDOC ## nfcFactory_AntennaSelfTest() ### Description Performs an antenna self-test. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcFactory_GetMwVersion() ### Description Retrieves the firmware version of the NFC module. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcFactory_PrbsTestStart() ### Description Starts a Pseudo-Random Binary Sequence (PRBS) test. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcFactory_PrbsTestStop() ### Description Stops a Pseudo-Random Binary Sequence (PRBS) test. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcFactory_testMode_close() ### Description Closes the factory test mode. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcFactory_testMode_open() ### Description Opens the factory test mode. ### Method Not applicable (function call) ### Parameters None ### Response None ``` -------------------------------- ### nfcManager_doInitialize Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Initializes the NFC manager and prepares it for operation. ```APIDOC ## nfcManager_doInitialize ### Description Initializes the NFC manager and prepares it for operation. ### Function Signature `void nfcManager_doInitialize(void);` ``` -------------------------------- ### onDeviceArrival Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_snep_server_callback__t-members.html Callback function invoked when a device arrives. ```APIDOC ## onDeviceArrival ### Description Callback function invoked when a device arrives. ### Signature `void (*onDeviceArrival)(struct nfc_snep_server *server, struct nfc_snep_device *device);` ``` -------------------------------- ### nfcHostCardEmulationCallback_t Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_host_card_emulation_callback__t.html Structure for defining callback functions for host card emulation events. This includes functions for activation, deactivation, and data reception. ```APIDOC ## Struct: nfcHostCardEmulationCallback_t ### Description Host card emulation callback function structure definition. ### Members - **onHostCardEmulationActivated** (void(*)()) Host Card Emulation activation callback function. - **onHostCardEmulationDeactivated** (void(*)()) Host Card Emulation de-activation callback function. - **onDataReceived** (void(*)(unsigned char *data, unsigned int data_length)) Apdu data callback function. #### Parameters - **data** (unsigned char *) - apdu data received from remote reader - **data_length** (unsigned int) - apdu data length ``` -------------------------------- ### onDeviceDeparture Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_snep_server_callback__t-members.html Callback function invoked when a device departs. ```APIDOC ## onDeviceDeparture ### Description Callback function invoked when a device departs. ### Signature `void (*onDeviceDeparture)(struct nfc_snep_server *server, struct nfc_snep_device *device);` ``` -------------------------------- ### NFC Manager Initialization and Deinitialization Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Functions to initialize and deinitialize the NFC stack. ```APIDOC ## nfcManager_doInitialize ### Description Initializes the NFC stack. This function must be called before any other NFC operations. ### Method `int nfcManager_doInitialize()` ### Response - **Success**: Returns 0 on successful initialization. - **Error**: Returns a negative value on failure. ## nfcManager_doDeinitialize ### Description De-initializes the NFC stack. This function should be called when NFC functionality is no longer needed. ### Method `int nfcManager_doDeinitialize()` ### Response - **Success**: Returns 0 on successful deinitialization. - **Error**: Returns a negative value on failure. ``` -------------------------------- ### NFC Host Card Emulation Callback Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for Host Card Emulation callback functions. ```APIDOC ## struct nfcHostCardEmulationCallback_t ### Description Host card emulation callback function structure definition. ### Fields * **callback** (void*) - Pointer to the callback function. ``` -------------------------------- ### nfcManager_doDeinitialize Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Deinitializes the NFC manager and releases associated resources. ```APIDOC ## nfcManager_doDeinitialize ### Description Deinitializes the NFC manager and releases associated resources. ### Function Signature `void nfcManager_doDeinitialize(void);` ``` -------------------------------- ### onHostCardEmulationActivated Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_host_card_emulation_callback__t-members.html Callback function invoked when host card emulation is activated. This function is part of the nfcHostCardEmulationCallback_t structure. ```APIDOC ## onHostCardEmulationActivated ### Description Callback function invoked when host card emulation is activated. ### Function Signature `void (*onHostCardEmulationActivated)(void *context, int technology); ` ### Parameters * **context** (void *) - User-provided context pointer. * **technology** (int) - The activated technology. ``` -------------------------------- ### nfcFactory_testMode_open Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h.html Opens the physical connection with the NFCC and creates the required client threads for operation. This function initializes the test mode. ```APIDOC ## nfcFactory_testMode_open ### Description Opens the physical connection with NFCC and creates required client threads for operation. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Returns - 0 if successful, otherwise failed. ``` -------------------------------- ### nfcFactory_testMode_open Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h.html Opens the physical connection with the NFCC and creates the required client thread for operation. ```APIDOC ## nfcFactory_testMode_open ### Description Opens the physical connection with NFCC and creates required client thread for operation. ### Function Signature `int nfcFactory_testMode_open(void)` ### Returns An integer indicating the success or failure of the operation. ``` -------------------------------- ### ndef_createUri Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Creates an NDEF message containing a URI. It takes a URI string and populates the output buffer with the NDEF-formatted message. ```APIDOC ## ndef_createUri ### Description Creates an NDEF message containing a URI. It takes a URI string and populates the output buffer with the NDEF-formatted message. ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Parameters - **uri** (char *) - The URI string to encode. - **out_ndef_buff** (unsigned char *) - Output buffer to store the NDEF message. - **out_ndef_buff_length** (unsigned int) - Maximum length of the output NDEF buffer. ### Returns - int: Returns 0 on success, or an error code on failure. ``` -------------------------------- ### NFC Handover Callback Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for Handover callback functions. ```APIDOC ## struct nfcHandoverCallback_t ### Description Handover callback functions structure definition. ### Fields * **callback** (void*) - Pointer to the callback function. ``` -------------------------------- ### ndef_createText Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Creates an NDEF message containing plain text. It takes a language code and text, then formats it into an NDEF message in the output buffer. ```APIDOC ## ndef_createText ### Description Creates an NDEF message containing plain text. It takes a language code and text, then formats it into an NDEF message in the output buffer. ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Parameters - **language_code** (char *) - The language code for the text (e.g., "en"). - **text** (char *) - The plain text content. - **out_ndef_buff** (unsigned char *) - Output buffer to store the NDEF message. - **out_ndef_buff_length** (unsigned int) - Maximum length of the output NDEF buffer. ### Returns - int: Returns 0 on success, or an error code on failure. ``` -------------------------------- ### nfcManager_getFwVersion Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Retrieves the firmware version of the NFC controller. ```APIDOC ## nfcManager_getFwVersion ### Description Retrieves the firmware version of the NFC controller. ### Function Signature `char* nfcManager_getFwVersion(void);` ``` -------------------------------- ### nfcFactory_testMode_open Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h_source.html Opens the physical connection with the NFCC and creates the necessary client thread for operation. This function must be called before any other factory test functions. ```APIDOC ## nfcFactory_testMode_open ### Description Opens the physical connection with NFCC and creates required client thread for operation. ### Method `int nfcFactory_testMode_open(void)` ### Parameters None ### Return Value Returns 0 on success, or a negative value on error. ``` -------------------------------- ### nfc_wifi_pairing_t Structure Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc__wifi__pairing__t.html This structure defines the fields for an NFC Wi-Fi handover select record, used for configuring Wi-Fi network details during NFC handover. ```APIDOC ## Struct: nfc_wifi_pairing_t ### Description NFC wifi handover select record structure definition. ### Definition `#include ` ### Members - **power_state** ([nfc_handover_cps_t](linux__nfc__api_8h.html#a7c6b0ba3e307e06fe009338c6899c0ab)) - Handover Carrier Power State. - **ndef** (unsigned char *) - Handover Carrier Configuration record. - **ndef_length** (unsigned int) - Handover Carrier Configuration record length. - **ssid** (unsigned char *) - Wifi network ssid. - **ssid_length** (unsigned int) - Wifi network ssid length. - **key** (unsigned char *) - Wifi network key. - **key_length** (unsigned int) - Wifi network key length. ### Source File `C:/Users/nxp99386/Documents/Nest/libnfc-nci-linux/libnfc-nci-linux/src/include/linux_nfc_api.h` (line 252) ``` -------------------------------- ### NFC Manager Functions Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals_func.html Functions for initializing, deinitializing, and managing NFC discovery and device state. ```APIDOC ## nfcManager_deregisterTagCallback() ### Description Deregisters the tag discovery callback. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcManager_disableDiscovery() ### Description Disables NFC discovery. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcManager_doDeinitialize() ### Description Deinitializes the NFC manager. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcManager_doInitialize() ### Description Initializes the NFC manager. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcManager_enableDiscovery() ### Description Enables NFC discovery. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcManager_getFwVersion() ### Description Retrieves the NFC firmware version. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcManager_isNfcActive() ### Description Checks if NFC is active. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcManager_registerTagCallback() ### Description Registers the tag discovery callback. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ``` -------------------------------- ### nfc_wifi_request_t Structure Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc__wifi__request__t.html This structure defines the parameters for an NFC Wi-Fi handover request. It contains a flag to indicate if a Wi-Fi request is present, and fields for the NDEF data and its length. ```APIDOC ## Struct: nfc_wifi_request_t ### Description NFC wifi handover request record structure definition. ### Fields - **has_wifi** (int) - Indicates if a Wi-Fi request is present. - **ndef** (unsigned char *) - Handover Carrier Configuration record. - **ndef_length** (unsigned int) - Handover Carrier Configuration record length. ``` -------------------------------- ### NFC Handover Functions Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Functions for registering/deregistering callbacks and sending records/errors for NFC Handover. ```APIDOC ## nfcHo_deregisterCallback() ### Description Deregisters the callback function for NFC Handover events. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcHo_registerCallback() ### Description Registers a callback function to receive NFC Handover events. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcHo_sendSelectError() ### Description Sends a select error during NFC Handover. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcHo_sendSelectRecord() ### Description Sends a select record during NFC Handover. ### Method Not applicable (function call) ### Parameters None ### Response None ``` -------------------------------- ### nfcFactory_GetMwVersion Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h.html Retrieves the Mw version. ```APIDOC ## nfcFactory_GetMwVersion ### Description Test function to return Mw version. ### Function Signature `int nfcFactory_GetMwVersion(void)` ### Returns An integer representing the Mw version. ``` -------------------------------- ### ndef_createUri Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Creates a new NDEF Record containing a URI. This function formats a URI into an NDEF record. ```APIDOC ## ndef_createUri ### Description Creates a new NDEF Record containing a URI. This function formats a URI into an NDEF record. ### Function Signature `int ndef_createUri(char *uri, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length)` ### Parameters * **uri** (char *) - The URI string to encode. * **out_ndef_buff** (unsigned char *) - Buffer to store the created NDEF record. * **out_ndef_buff_length** (unsigned int) - Maximum length of the output NDEF buffer. ``` -------------------------------- ### NFC WiFi Pairing Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC handover using WiFi pairing records. ```APIDOC ## struct nfc_wifi_pairing_t ### Description NFC wifi handover select record structure definition. ### Fields * **data** (unsigned char*) - Pointer to the WiFi pairing data. ``` -------------------------------- ### ndef_createHandoverSelect Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Creates an NDEF message for Handover Select. This function formats the provided handover configuration, carrier data reference, and NDEF buffer information into an NDEF message. ```APIDOC ## ndef_createHandoverSelect ### Description Creates an NDEF message for Handover Select. This function formats the provided handover configuration, carrier data reference, and NDEF buffer information into an NDEF message. ### Function Signature ```c int ndef_createHandoverSelect([nfc_handover_cps_t](linux__nfc__api_8h.html#a7c6b0ba3e307e06fe009338c6899c0ab) cps, char *carrier_data_ref, unsigned char *ndef_buff, unsigned int ndef_buff_length, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length); ``` ### Parameters #### Arguments - **cps** ([nfc_handover_cps_t]) - The handover configuration. - **carrier_data_ref** (char *) - Reference to the carrier data. - **ndef_buff** (unsigned char *) - The NDEF buffer containing handover information. - **ndef_buff_length** (unsigned int) - The length of the NDEF buffer. - **out_ndef_buff** (unsigned char *) - Buffer to store the created NDEF message. - **out_ndef_buff_length** (unsigned int) - The size of the output NDEF buffer. ``` -------------------------------- ### nfcManager_doDeinitialize Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html De-initializes the NFC stack. This function should be called when NFC functionality is no longer needed. ```APIDOC ## nfcManager_doDeinitialize ### Description De-initializes the NFC stack. This function should be called when NFC functionality is no longer needed. ### Function Signature `int nfcManager_doDeinitialize()` ``` -------------------------------- ### nfcHce_registerHceCallback Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Registers a callback for Host Card Emulation (HCE) events. This function allows the application to handle HCE related events. ```APIDOC ## nfcHce_registerHceCallback ### Description Registers a callback for Host Card Emulation (HCE) events. This function allows the application to handle HCE related events. ### Function Signature ```c void nfcHce_registerHceCallback([nfcHostCardEmulationCallback_t](structnfc_host_card_emulation_callback__t.html) *callback); ``` ### Parameters #### Arguments - **callback** ([nfcHostCardEmulationCallback_t] *) - Pointer to the HCE callback structure. ``` -------------------------------- ### NFC Host Functions Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals_func.html Functions for managing NFC Host operations, including callbacks and sending records. ```APIDOC ## nfcHo_deregisterCallback() ### Description Deregisters the host operation callback. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcHo_registerCallback() ### Description Registers the host operation callback. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcHo_sendSelectError() ### Description Sends a select error record. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcHo_sendSelectRecord() ### Description Sends a select record. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ``` -------------------------------- ### NFC WiFi Request Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC handover using WiFi request records. ```APIDOC ## struct nfc_wifi_request_t ### Description NFC wifi handover request record structure definition. ### Fields * **data** (unsigned char*) - Pointer to the WiFi request data. ``` -------------------------------- ### NFC Handover Select Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC handover select records. ```APIDOC ## struct nfc_handover_select_t ### Description NFC handover select record structure definition. ### Fields * **data** (unsigned char*) - Pointer to the handover select data. ``` -------------------------------- ### NFC SNEP Server Callback Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC SNEP server callback functions. ```APIDOC ## struct nfcSnepServerCallback_t ### Description NFC SNEP server callback function structure definition. ### Fields * **callback** (void*) - Pointer to the callback function. ``` -------------------------------- ### nfcFactory_Antenna_St_Resp_t Structure Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_factory___antenna___st___resp__t.html The nfcFactory_Antenna_St_Resp_t structure holds various measurements related to NFC antenna performance. It includes raw TXDO values, measured ranges and tolerances for TXDO and AGC, and AGC values with fixed NFCLD, along with their respective tolerances. ```APIDOC ## Struct: nfcFactory_Antenna_St_Resp_t ### Description Instance of Transaction structure. ### Members - **wTxdoRawValue** (unsigned short) - Raw TXDO value. - **wTxdoMeasuredRangeMin** (unsigned short) - Minimum measured TXDO range. - **wTxdoMeasuredRangeMax** (unsigned short) - Maximum measured TXDO range. - **wTxdoMeasuredTolerance** (unsigned short) - Tolerance for measured TXDO. - **wAgcValue** (unsigned short) - AGC value. - **wAgcValueTolerance** (unsigned short) - Tolerance for AGC value. - **wAgcValuewithfixedNFCLD** (unsigned short) - AGC value with fixed NFCLD. - **wAgcValuewithfixedNFCLDTolerance** (unsigned short) - Tolerance for AGC value with fixed NFCLD. - **wAgcDifferentialWithOpen1** (unsigned short) - AGC differential with open 1. - **wAgcDifferentialWithOpenTolerance1** (unsigned short) - Tolerance for AGC differential with open 1. - **wAgcDifferentialWithOpen2** (unsigned short) - AGC differential with open 2. - **wAgcDifferentialWithOpenTolerance2** (unsigned short) - Tolerance for AGC differential with open 2. ### Definition Defined in `linux_nfc_factory_api.h` at line 47. ``` -------------------------------- ### nfc_snep_server_callback_t Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_snep_server_callback__t.html The nfc_snep_server_callback_t structure defines the callback functions for various NFC SNEP server events, including device arrival, device departure, and message reception. ```APIDOC ## Struct: nfc_snep_server_callback_t ### Description NFC SNEP server callback function structure definition. ### Members * **onDeviceArrival** (void (*)()) NFC Peer Device callback function when device is detected. * **onDeviceDeparture** (void (*)(void)) NFC Peer Device callback function when device is removed. * **onMessageReceived** (void (*)(unsigned char *message, unsigned int length)) NFC Peer Device callback function when NDEF message is received from peer device. #### Parameters * **message** (unsigned char *) - NDEF message * **length** (unsigned int) - NDEF message length ``` -------------------------------- ### NFC Handover Request Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC handover request records. ```APIDOC ## struct nfc_handover_request_t ### Description NFC handover request record structure definition. ### Fields * **data** (unsigned char*) - Pointer to the handover request data. ``` -------------------------------- ### ndef_createMime Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Creates a new NDEF Record containing MIME data. This function formats arbitrary MIME data into an NDEF record. ```APIDOC ## ndef_createMime ### Description Creates a new NDEF Record containing MIME data. This function formats arbitrary MIME data into an NDEF record. ### Function Signature `int ndef_createMime(char *mime_type, unsigned char *mime_data, unsigned int mime_data_length, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length)` ### Parameters * **mime_type** (char *) - The MIME type of the data (e.g., "application/json"). * **mime_data** (unsigned char *) - Pointer to the MIME data. * **mime_data_length** (unsigned int) - Length of the MIME data. * **out_ndef_buff** (unsigned char *) - Buffer to store the created NDEF record. * **out_ndef_buff_length** (unsigned int) - Maximum length of the output NDEF buffer. ``` -------------------------------- ### NFC Factory Functions Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals_func.html Functions for performing factory tests and retrieving firmware versions. ```APIDOC ## nfcFactory_AntennaSelfTest() ### Description Performs an antenna self-test. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcFactory_GetMwVersion() ### Description Retrieves the middleware version. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcFactory_PrbsTestStart() ### Description Starts a PRBS (Pseudo-Random Binary Sequence) test. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcFactory_PrbsTestStop() ### Description Stops a PRBS test. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcFactory_testMode_close() ### Description Closes the test mode. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcFactory_testMode_open() ### Description Opens the test mode. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ``` -------------------------------- ### NFC Manager Functions Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Functions for managing NFC tag callbacks and discovery modes. ```APIDOC ## nfcManager_deregisterTagCallback() ### Description Deregisters the callback function for NFC tag events. ### Method Not applicable (function call) ### Parameters None ### Response None ``` ```APIDOC ## nfcManager_disableDiscovery() ### Description Disables NFC discovery mode. ### Method Not applicable (function call) ### Parameters None ### Response None ``` -------------------------------- ### nfcHce_sendCommand Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Sends a command to the HCE service. This function is used to send commands to the Host Card Emulation service. ```APIDOC ## nfcHce_sendCommand ### Description Sends a command to the HCE service. This function is used to send commands to the Host Card Emulation service. ### Function Signature ```c int nfcHce_sendCommand(unsigned char* command, unsigned int command_length); ``` ### Parameters #### Arguments - **command** (unsigned char *) - Pointer to the command buffer. - **command_length** (unsigned int) - The length of the command. ``` -------------------------------- ### ndef_createMime Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Creates an NDEF message for a MIME type. This function formats the provided MIME type, data, and length into an NDEF buffer. ```APIDOC ## ndef_createMime ### Description Creates an NDEF message for a MIME type. This function formats the provided MIME type, data, and length into an NDEF buffer. ### Function Signature ```c int ndef_createMime(char *mime_type, unsigned char *mime_data, unsigned int mime_data_length, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length); ``` ### Parameters #### Arguments - **mime_type** (char *) - The MIME type string. - **mime_data** (unsigned char *) - Pointer to the MIME data. - **mime_data_length** (unsigned int) - The length of the MIME data. - **out_ndef_buff** (unsigned char *) - Buffer to store the created NDEF message. - **out_ndef_buff_length** (unsigned int) - The size of the output NDEF buffer. ``` -------------------------------- ### ndef_createText Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Creates a new NDEF Record containing text. This function formats a text string into an NDEF record, including a language code. ```APIDOC ## ndef_createText ### Description Creates a new NDEF Record containing text. This function formats a text string into an NDEF record, including a language code. ### Function Signature `int ndef_createText(char *language_code, char *text, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length)` ### Parameters * **language_code** (char *) - The language code for the text (e.g., "en"). * **text** (char *) - The text string to encode. * **out_ndef_buff** (unsigned char *) - Buffer to store the created NDEF record. * **out_ndef_buff_length** (unsigned int) - Maximum length of the output NDEF buffer. ``` -------------------------------- ### onDataReceived Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_host_card_emulation_callback__t-members.html Callback function invoked when data is received in host card emulation mode. This function is part of the nfcHostCardEmulationCallback_t structure. ```APIDOC ## onDataReceived ### Description Callback function invoked when data is received in host card emulation mode. ### Function Signature `void (*onDataReceived)(void *context, const void *data, int length);` ### Parameters * **context** (void *) - User-provided context pointer. * **data** (const void *) - Pointer to the received data. * **length** (int) - The length of the received data. ``` -------------------------------- ### NDEF Record Creation Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Functions for creating different types of NDEF records. ```APIDOC ## ndef_createUri ### Description Creates a new NDEF Record containing a URI. ### Method `int ndef_createUri(char *uri, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length)` ### Parameters #### Path Parameters - **uri** (char *) - Required - The URI string to encode. - **out_ndef_buff** (unsigned char *) - Required - Buffer to store the created NDEF record. - **out_ndef_buff_length** (unsigned int) - Required - The size of the output buffer. ### Response - **Success**: Returns the length of the created NDEF record on success. - **Error**: Returns a negative value on failure. ## ndef_createHandoverSelect ### Description Creates an NDEF record for Handover Select. ### Method `int ndef_createHandoverSelect(nfc_handover_cps_t cps, char *carrier_data_ref, unsigned char *ndef_buff, unsigned int ndef_buff_length, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length)` ### Parameters #### Path Parameters - **cps** (nfc_handover_cps_t) - Required - Carrier Power State. - **carrier_data_ref** (char *) - Required - Reference to carrier data. - **ndef_buff** (unsigned char *) - Required - Buffer for NDEF data. - **ndef_buff_length** (unsigned int) - Required - Length of the NDEF buffer. - **out_ndef_buff** (unsigned char *) - Required - Buffer to store the created Handover Select NDEF record. - **out_ndef_buff_length** (unsigned int) - Required - The size of the output buffer. ### Response - **Success**: Returns the length of the created NDEF record on success. - **Error**: Returns a negative value on failure. ``` -------------------------------- ### onHostCardEmulationDeactivated Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_host_card_emulation_callback__t-members.html Callback function invoked when host card emulation is deactivated. This function is part of the nfcHostCardEmulationCallback_t structure. ```APIDOC ## onHostCardEmulationDeactivated ### Description Callback function invoked when host card emulation is deactivated. ### Function Signature `void (*onHostCardEmulationDeactivated)(void *context); ` ### Parameters * **context** (void *) - User-provided context pointer. ``` -------------------------------- ### ndef_readHandoverSelectInfo Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Reads handover select information from an NDEF message buffer. It populates the provided structure with the parsed handover select data. ```APIDOC ## ndef_readHandoverSelectInfo ### Description Reads handover select information from an NDEF message buffer. It populates the provided structure with the parsed handover select data. ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Parameters - **ndef_buff** (unsigned char *) - Buffer containing the NDEF message. - **ndef_buff_length** (unsigned int) - Length of the NDEF message buffer. - **info** (struct nfc_handover_select_t *) - Pointer to a structure to store the handover select information. ### Returns - int: Returns 0 on success, or an error code on failure. ``` -------------------------------- ### nfc_handover_select_t Structure Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc__handover__select__t.html The nfc_handover_select_t structure is used to define the record for NFC handover select operations. It contains fields for Bluetooth and Wi-Fi handover information. ```APIDOC ## Struct nfc_handover_select_t ### Description NFC handover select record structure definition. ### Members * **bluetooth** ([nfc_btoob_pairing_t](structnfc__btoob__pairing__t.html)) Bluetooth Handover select. * **wifi** ([nfc_wifi_pairing_t](structnfc__wifi__pairing__t.html)) Wifi Handover select. ### Definition Defined in `linux_nfc_api.h` at line 321. ``` -------------------------------- ### Target Type ISO15693 Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Macro representing the ISO15693 NFC target type. ```APIDOC ## #define TARGET_TYPE_ISO15693 ### Description Represents the ISO15693 NFC target type. ``` -------------------------------- ### ndef_createText Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Creates a new NDEF Record containing a text. This function formats text data into an NDEF record. ```APIDOC ## ndef_createText ### Description Creates a new NDEF Record containing a text. This function formats text data into an NDEF record. ### Function Signature `int ndef_createText(char *language_code, char *text, unsigned char *out_ndef_buff, unsigned int out_ndef_buff_length)` ### Parameters * **language_code** (char *) - The language code for the text (e.g., "en"). * **text** (char *) - The text content to be included in the NDEF record. * **out_ndef_buff** (unsigned char *) - Buffer to store the created NDEF record. * **out_ndef_buff_length** (unsigned int) - Maximum length of the output NDEF buffer. ``` -------------------------------- ### nfcManager_enableDiscovery Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Enables NFC discovery mode to detect nearby devices. ```APIDOC ## nfcManager_enableDiscovery ### Description Enables NFC discovery mode to detect nearby devices. ### Function Signature `void nfcManager_enableDiscovery(void);` ``` -------------------------------- ### NFC SNEP Client Callback Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC SNEP client callback functions. ```APIDOC ## struct nfcSnepClientCallback_t ### Description NFC SNEP client callback function structure definition. ### Fields * **callback** (void*) - Pointer to the callback function. ``` -------------------------------- ### nfcHandoverCallback_t Structure Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_handover_callback__t.html The nfcHandoverCallback_t structure defines callback functions for receiving NFC handover requests and select messages. It includes function pointers for `onHandoverRequestReceived` and `onHandoverSelectReceived`. ```APIDOC ## Struct: nfcHandoverCallback_t ### Description Handover callback functions structure definition. This structure is used to register callback functions that will be invoked when a handover request or a handover select message is received. ### Members - **onHandoverRequestReceived** (void(*)(unsigned char *, unsigned int)) - Callback function invoked when a handover request message is received. Use `ndef_readHandoverRequestInfo()` to parse the message. - Parameters: - msg (unsigned char *): Handover request NDEF message from the remote device. - length (unsigned int): Length of the handover request NDEF message. - **onHandoverSelectReceived** (void(*)(unsigned char *, unsigned int)) - Callback function invoked when a handover select message is received. Use `ndef_readHandoverSelectInfo()` to parse the message. - Parameters: - msg (unsigned char *): Handover select NDEF message from the remote device. - length (unsigned int): Length of the handover select NDEF message. ### Source File `linux_nfc_api.h` ``` -------------------------------- ### nfcFactory_AntennaSelfTest Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h.html Tests the discrete components connection of the NFC antenna. It returns 0 on success and a non-zero value on failure. ```APIDOC ## nfcFactory_AntennaSelfTest ### Description Tests the discrete components connection of the NFC antenna. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Returns - 0 if successful - Otherwise failed ``` -------------------------------- ### ndef_readHandoverRequestInfo Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Reads handover request information from an NDEF message buffer. It populates the provided structure with the parsed handover request data. ```APIDOC ## ndef_readHandoverRequestInfo ### Description Reads handover request information from an NDEF message buffer. It populates the provided structure with the parsed handover request data. ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Parameters - **ndef_buff** (unsigned char *) - Buffer containing the NDEF message. - **ndef_buff_length** (unsigned int) - Length of the NDEF message buffer. - **info** (struct nfc_handover_request_t *) - Pointer to a structure to store the handover request information. ### Returns - int: Returns 0 on success, or an error code on failure. ``` -------------------------------- ### NFC Tag Callback Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC Tag callback functions. ```APIDOC ## struct nfcTagCallback_t ### Description NFC Tag callback function structure definition. ### Fields * **callback** (void*) - Pointer to the callback function. ``` -------------------------------- ### NFA Technology Mask A Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Macro representing the NFA technology mask for technology A. ```APIDOC ## #define NFA_TECHNOLOGY_MASK_A ### Description Represents the NFA technology mask for technology A. ``` -------------------------------- ### Target Type Unknown Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Macro representing an unknown NFC target type. ```APIDOC ## #define TARGET_TYPE_UNKNOWN ### Description Represents an unknown NFC target type. ``` -------------------------------- ### Target Type ISO14443-4 Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Macro representing the ISO14443-4 NFC target type. ```APIDOC ## #define TARGET_TYPE_ISO14443_4 ### Description Represents the ISO14443-4 NFC target type. ``` -------------------------------- ### nfcSnep_registerClientCallback Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals.html Registers a client callback for SNEP operations. ```APIDOC ## nfcSnep_registerClientCallback ### Description Registers a client callback for SNEP operations. ### Function Signature `void nfcSnep_registerClientCallback(void* callback);` ``` -------------------------------- ### Default NFA Technology Mask Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Macro representing the default NFA technology mask. ```APIDOC ## #define DEFAULT_NFA_TECH_MASK ### Description Represents the default NFA technology mask. ``` -------------------------------- ### NFC HCE Functions Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/globals_func.html Functions for managing NFC Host Card Emulation (HCE) callbacks. ```APIDOC ## nfcHce_deregisterHceCallback() ### Description Deregisters the HCE callback. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcHce_registerHceCallback() ### Description Registers the HCE callback. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ## nfcHce_sendCommand() ### Description Sends a command via HCE. ### Method Not applicable (function signature) ### Endpoint Not applicable ### Parameters None explicitly documented. ### Response Not explicitly documented. ``` -------------------------------- ### nfc_handover_request_t Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc__handover__request__t.html NFC handover request record structure definition. This structure contains fields for Bluetooth and Wi-Fi handover requests. ```APIDOC ## Struct nfc_handover_request_t ### Description NFC handover request record structure definition. ### Members * **bluetooth** ([nfc_btoob_request_t](linux__nfc__api_8h.html#aad6b282cdfe3a0ea400cfc1419666a0d)) Bluetooth Handover request. * **wifi** ([nfc_wifi_request_t](structnfc__wifi__request__t.html)) Wifi Handover request. ### Definition Defined in file `linux_nfc_api.h` at line 306. ``` -------------------------------- ### nfcHce_sendCommand Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Sends an APDU command to a remote reader. This is used for Host Card Emulation (HCE) operations. ```APIDOC ## nfcHce_sendCommand ### Description Sends an APDU command to a remote reader. This is used for Host Card Emulation (HCE) operations. ### Function Signature `int nfcHce_sendCommand(unsigned char *command, unsigned int command_length)` ### Parameters * **command** (unsigned char *) - Buffer containing the APDU command. * **command_length** (unsigned int) - Length of the APDU command buffer. ``` -------------------------------- ### NFC Handover Bluetooth Pairing Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h.html Defines the structure for NFC handover using Bluetooth pairing records. ```APIDOC ## struct nfc_btoob_pairing_t ### Description NFC handover bluetooth record structure definition. ### Fields * **data** (unsigned char*) - Pointer to the Bluetooth pairing data. ``` -------------------------------- ### ndef_readUrl Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__api_8h_source.html Reads a URL from an NDEF message buffer. It extracts the URL content and stores it in the provided output buffer. ```APIDOC ## ndef_readUrl ### Description Reads a URL from an NDEF message buffer. It extracts the URL content and stores it in the provided output buffer. ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Parameters - **ndef_buff** (unsigned char *) - Buffer containing the NDEF message. - **ndef_buff_length** (unsigned int) - Length of the NDEF message buffer. - **out_url** (char *) - Output buffer to store the extracted URL. - **out_url_length** (unsigned int) - Maximum length of the output URL buffer. ### Returns - int: Returns 0 on success, or an error code on failure. ``` -------------------------------- ### onTagDeparture Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/structnfc_tag_callback__t-members.html Callback function invoked when a NFC tag departs. ```APIDOC ## onTagDeparture ### Description Callback function invoked when a NFC tag departs. ### Method Callback ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response N/A ``` -------------------------------- ### nfcFactory_testMode_close Source: https://github.com/nxpnfclinux/linux_libnfc-nci/blob/master/doc/Linux_NFC_API_Guide/linux__nfc__factory__api_8h.html Closes the NFCC interface and frees all resources. ```APIDOC ## nfcFactory_testMode_close ### Description Closes the NFCC interface and frees all resources. ### Function Signature `void nfcFactory_testMode_close(void)` ### Returns None. ```