Generation of NFC NDEF record descriptions that launch apps.
More...
Generation of NFC NDEF record descriptions that launch apps.
#define NFC_NDEF_ANDROID_LAUNCHAPP_RECORD_DESC_DEF |
( |
|
NAME, |
|
|
|
P_PACKAGE_NAME, |
|
|
|
PACKAGE_NAME_LENGTH |
|
) |
| |
Value:
NULL, \
0, \
(P_PACKAGE_NAME), \
(PACKAGE_NAME_LENGTH))
Macro for generating a description of an NFC NDEF Android Application Record (AAR).
This macro declares and initializes an instance of an NFC NDEF record description of an Android Application Record (AAR).
- Note
- The record descriptor is declared as automatic variable, which implies that the NDEF message encoding (see nfc_launchapp_msg_encode) must be done in the same variable scope.
- Parameters
-
[in] | NAME | Name for accessing record descriptor. |
[in] | P_PACKAGE_NAME | Pointer to the Android package name string. |
[in] | PACKAGE_NAME_LENGTH | Length of the Android package name. |
#define NFC_NDEF_WINDOWS_LAUNCHAPP_RECORD_DESC_DEF |
( |
|
NAME, |
|
|
|
P_WIN_APP_ID, |
|
|
|
WIN_APP_ID_LENGTH |
|
) |
| |
Value:
{ \
.app_id = (P_WIN_APP_ID), \
.app_id_length = WIN_APP_ID_LENGTH \
}; \
NFC_NDEF_GENERIC_RECORD_DESC_DEF(NAME, \
NULL, \
0, \
&NAME##_ndef_win_launchapp_rec_payload_desc) \
Macro for generating a description of an NFC NDEF Windows LaunchApp record.
This macro declares and initializes an instance of an NFC NDEF record description of a Windows LaunchApp record.
- Note
- The record descriptor is declared as automatic variable, which implies that the NDEF message encoding (see nfc_launchapp_msg_encode) must be done in the same variable scope.
- Parameters
-
[in] | NAME | Name for accessing record descriptor. |
[in] | P_WIN_APP_ID | Pointer to the Windows application ID string (GUID). |
[in] | WIN_APP_ID_LENGTH | Length of the Windows application ID. |
- Returns
- Pointer to the description of the record.
Function for constructing the payload for a Windows LaunchApp record.
This function encodes the payload according to the LaunchApp record definition. It implements an API compatible with p_payload_constructor_t.
- Parameters
-
[in] | p_input | Pointer to the description of the payload. |
[out] | p_buff | Pointer to payload destination. If NULL, function will calculate the expected size of the LaunchApp record payload. |
[in,out] | p_len | Size of available memory to write as input. Size of generated payload as output. |
- Return values
-
NRF_SUCCESS | Always success. |