7#ifndef NFC_NDEF_URI_REC_H_
8#define NFC_NDEF_URI_REC_H_
20#include <zephyr/types.h>
129#define NFC_NDEF_URI_RECORD_DESC_DEF(name, \
133 struct nfc_ndef_uri_rec_payload name##_ndef_uri_record_payload_desc = \
135 .uri_id_code = (uri_id_code_arg), \
136 .uri_data = (uri_data_arg), \
137 .uri_data_len = (uri_data_len_arg) \
140 NFC_NDEF_GENERIC_RECORD_DESC_DEF(name, \
144 &nfc_ndef_uri_rec_type, \
145 sizeof(nfc_ndef_uri_rec_type), \
146 nfc_ndef_uri_rec_payload_encode, \
147 &name##_ndef_uri_record_payload_desc) \
153#define NFC_NDEF_URI_RECORD_DESC(name) NFC_NDEF_GENERIC_RECORD_DESC(name)
int nfc_ndef_uri_rec_payload_encode(struct nfc_ndef_uri_rec_payload *input, uint8_t *buff, uint32_t *len)
Construct the payload for a URI record.
const uint8_t nfc_ndef_uri_rec_type
External reference to the type field of the URI record, defined in the file uri_rec....
nfc_ndef_uri_rec_id
URI identifier codes according to "URI Record Type Definition" (denotation "NFCForum-TS-RTD_URI_1....
Definition: uri_rec.h:32
@ NFC_URI_TELNET
Definition: uri_rec.h:49
@ NFC_URI_HTTPS
Definition: uri_rec.h:37
@ NFC_URI_FTP
Definition: uri_rec.h:46
@ NFC_URI_NONE
Definition: uri_rec.h:33
@ NFC_URI_FTP_FTP
Definition: uri_rec.h:41
@ NFC_URI_URN_NFC
Definition: uri_rec.h:68
@ NFC_URI_FTPS
Definition: uri_rec.h:42
@ NFC_URI_NFS
Definition: uri_rec.h:45
@ NFC_URI_URN_EPC_TAG
Definition: uri_rec.h:64
@ NFC_URI_URN_EPC_PAT
Definition: uri_rec.h:65
@ NFC_URI_TEL
Definition: uri_rec.h:38
@ NFC_URI_SIPS
Definition: uri_rec.h:55
@ NFC_URI_URN_EPC_RAW
Definition: uri_rec.h:66
@ NFC_URI_HTTP_WWW
Definition: uri_rec.h:34
@ NFC_URI_HTTPS_WWW
Definition: uri_rec.h:35
@ NFC_URI_URN
Definition: uri_rec.h:52
@ NFC_URI_BTSPP
Definition: uri_rec.h:57
@ NFC_URI_IMAP
Definition: uri_rec.h:50
@ NFC_URI_TCPOBEX
Definition: uri_rec.h:60
@ NFC_URI_URN_EPC_ID
Definition: uri_rec.h:63
@ NFC_URI_DAV
Definition: uri_rec.h:47
@ NFC_URI_SMB
Definition: uri_rec.h:44
@ NFC_URI_BTGOEP
Definition: uri_rec.h:59
@ NFC_URI_HTTP
Definition: uri_rec.h:36
@ NFC_URI_FTP_ANONYMOUS
Definition: uri_rec.h:40
@ NFC_URI_BTL2CAP
Definition: uri_rec.h:58
@ NFC_URI_POP
Definition: uri_rec.h:53
@ NFC_URI_SFTP
Definition: uri_rec.h:43
@ NFC_URI_RTSP
Definition: uri_rec.h:51
@ NFC_URI_MAILTO
Definition: uri_rec.h:39
@ NFC_URI_URN_EPC
Definition: uri_rec.h:67
@ NFC_URI_NEWS
Definition: uri_rec.h:48
@ NFC_URI_RFU
Definition: uri_rec.h:69
@ NFC_URI_SIP
Definition: uri_rec.h:54
@ NFC_URI_FILE
Definition: uri_rec.h:62
@ NFC_URI_IRDAOBEX
Definition: uri_rec.h:61
@ NFC_URI_TFTP
Definition: uri_rec.h:56
uint16_t uri_data_len
Definition: uri_rec.h:83
uint8_t const * uri_data
Definition: uri_rec.h:81
enum nfc_ndef_uri_rec_id uri_id_code
Definition: uri_rec.h:79
Type of description of the payload of a URI record.
Definition: uri_rec.h:77