nRF Connect SDK API 0.1.0
|
#define NFC_NDEF_NESTED_NDEF_MSG_RECORD_DEF | ( | name, | |
tnf_arg, | |||
id_arg, | |||
id_len, | |||
type_arg, | |||
type_len, | |||
nested_message | |||
) |
#include <include/nfc/ndef/msg.h>
Macro for creating and initializing an NFC NDEF record descriptor with an encapsulated NDEF message. This macro creates and initializes an instance of type nfc_ndef_record_desc that contains an encapsulated NDEF message as payload. nfc_ndef_msg_encode is used as payload constructor to encode the message. The encoded message is then used as payload for the record.
Use the macro NFC_NDEF_NESTED_NDEF_MSG_RECORD to access the NDEF record descriptor instance.
name | Name of the created record descriptor instance. |
tnf_arg | Type Name Format (TNF) value for the record. |
id_arg | Pointer to the ID string. |
id_len | Length of the ID string. |
type_arg | Pointer to the type string. |
type_len | Length of the type string. |
nested_message | Pointer to the message descriptor to encapsulate as the record's payload. |