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

◆ NFC_TNEP_STATUS_RECORD_DESC_DEF

#define NFC_TNEP_STATUS_RECORD_DESC_DEF (   _name,
  _status 
)

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

Value:
struct nfc_ndef_tnep_rec_status _name = { \
.status = _status, \
}; \
\
NFC_NDEF_GENERIC_RECORD_DESC_DEF(_name, TNF_WELL_KNOWN, \
0, 0, \
&(_name))
@ TNF_WELL_KNOWN
Definition: record.h:71
int nfc_ndef_tnep_rec_status_payload(struct nfc_ndef_tnep_rec_status *payload_desc, uint8_t *buffer, uint32_t *len)
Payload constructor for the NDEF TNEP Status Record.
#define NFC_NDEF_TNEP_REC_TYPE_LEN
Definition: tnep_rec.h:25
const uint8_t nfc_ndef_tnep_rec_type_status[]
uint8_t status
Definition: tnep_rec.h:38
TNEP Status.
Definition: tnep_rec.h:36

Macro for creating and initializing a NFC NDEF record descriptor for a TENP Status Record.

This macro creates and initializes an instance of type nfc_ndef_record_desc and an instance of type nfc_ndef_tnep_rec_status, which together constitute an instance of a TNEP status record.

Use the macro NFC_NDEF_TNEP_RECORD_DESC to access the NDEF TENP record descriptor instance. Use name to access a TNEP Status description.

Parameters
[in]_nameName of the created record descriptor instance.
[in]_statusTNEP Message Status.