![]() |
nRF Connect SDK API 3.3.99
|
| #define NFC_NDEF_GENERIC_RECORD_DESC_DEF | ( | name, | |
| tnf_arg, | |||
| id_arg, | |||
| id_len, | |||
| type_arg, | |||
| type_len, | |||
| payload_constructor_arg, | |||
| payload_descriptor_arg ) |
#include <include/nfc/ndef/record.h>
Macro for creating and initializing an NFC NDEF record descriptor for a generic record.
This macro creates and initializes an instance of type nfc_ndef_record_desc.
Use the macro NFC_NDEF_GENERIC_RECORD_DESC to access the NDEF record descriptor instance.
| name | Name of the created 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. |
| payload_constructor_arg | Pointer to the payload constructor function. The constructor must be of type payload_constructor_t. |
| payload_descriptor_arg | Pointer to the data for the payload constructor. |