nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ NFC_TNEP_SERIVCE_SELECT_RECORD_DESC_DEF

#define NFC_TNEP_SERIVCE_SELECT_RECORD_DESC_DEF (   _name,
  _uri_length,
  _uri 
)

#include <include/nfc/ndef/tnep_rec.h>

Value:
struct nfc_ndef_tnep_rec_svc_select _name = { \
.uri_len = _uri_length, \
.uri = _uri, \
}; \
\
NFC_NDEF_GENERIC_RECORD_DESC_DEF(_name, TNF_WELL_KNOWN, \
0, 0, \
&(_name))
@ TNF_WELL_KNOWN
Definition: record.h:71
const uint8_t nfc_ndef_tnep_rec_type_svc_select[]
int nfc_ndef_tnep_rec_svc_select_payload(struct nfc_ndef_tnep_rec_svc_select *payload_desc, uint8_t *buffer, uint32_t *len)
Payload constructor for the TNEP Service Select Record.
#define NFC_NDEF_TNEP_REC_TYPE_LEN
Definition: tnep_rec.h:25
uint8_t uri_len
Definition: tnep_rec.h:44
Service structure.
Definition: tnep_rec.h:42

Macro for creating and initializing a NFC NDEF record descriptor for a TNEP Service Select Record.

This macro creates and initializes an instance of type nfc_ndef_record_desc and an instance of type nfc_ndef_tnep_rec_svc_select, which together constitute an instance of a TNEP service select record.

Use the macro NFC_NDEF_TNEP_RECORD_DESC to access the NDEF TNEP record descriptor instance. Use name to access a TNEP Service Select description.

Parameters
[in]_nameName of the created record descriptor instance.
[in]_uri_lengthLength of the following Service Name URI.
[in]_uriService Name URI.