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

◆ NFC_TNEP_SERIVCE_PARAM_RECORD_DESC_DEF

#define NFC_TNEP_SERIVCE_PARAM_RECORD_DESC_DEF (   _name,
  _tnep_version,
  _uri_length,
  _uri,
  _mode,
  _min_time,
  _max_time_ext,
  _max_message_size 
)

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

Value:
struct nfc_ndef_tnep_rec_svc_param _name = { \
.version = _tnep_version, \
.uri_length = _uri_length, \
.uri = _uri, \
.communication_mode = _mode, \
.min_time = _min_time, \
.max_time_ext = _max_time_ext, \
.max_size = _max_message_size, \
}; \
\
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_param[]
#define NFC_NDEF_TNEP_REC_TYPE_LEN
Definition: tnep_rec.h:25
int nfc_ndef_tnep_rec_svc_param_payload(struct nfc_ndef_tnep_rec_svc_param *payload_desc, uint8_t *buffer, uint32_t *len)
Payload constructor for the Service Parameter Record.
uint8_t version
Definition: tnep_rec.h:53
Service Parameters in the TNEP's Initial NDEF message.
Definition: tnep_rec.h:51

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

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

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

Parameters
[in]_nameName of the created record descriptor instance.
[in]_tnep_versionTNEP Version.
[in]_uri_lengthService name uri length in bytes.
[in]_uriService name uri.
[in]_modeTNEP communication mode.
[in]_min_timeMinimum waiting time.
[in]_max_time_extMaximum number of waiting time extensions.
[in]_max_message_sizeMaximum NDEF message size in bytes.