nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
uri_rec.h File Reference
#include <stddef.h>
#include <zephyr/types.h>
#include <nfc/ndef/record.h>

Go to the source code of this file.

Data Structures

struct  nfc_ndef_uri_rec_payload
 Type of description of the payload of a URI record. More...
 

Macros

#define NFC_NDEF_URI_RECORD_DESC_DEF(name, uri_id_code_arg, uri_data_arg, uri_data_len_arg)
 Macro for generating a description of a URI record.
 
#define NFC_NDEF_URI_RECORD_DESC(name)   NFC_NDEF_GENERIC_RECORD_DESC(name)
 Macro for accessing the NFC NDEF URI record descriptor instance that was created with NFC_NDEF_URI_RECORD_DESC_DEF.
 

Enumerations

enum  nfc_ndef_uri_rec_id {
  NFC_URI_NONE = 0x00 , NFC_URI_HTTP_WWW = 0x01 , NFC_URI_HTTPS_WWW = 0x02 , NFC_URI_HTTP = 0x03 ,
  NFC_URI_HTTPS = 0x04 , NFC_URI_TEL = 0x05 , NFC_URI_MAILTO = 0x06 , NFC_URI_FTP_ANONYMOUS = 0x07 ,
  NFC_URI_FTP_FTP = 0x08 , NFC_URI_FTPS = 0x09 , NFC_URI_SFTP = 0x0A , NFC_URI_SMB = 0x0B ,
  NFC_URI_NFS = 0x0C , NFC_URI_FTP = 0x0D , NFC_URI_DAV = 0x0E , NFC_URI_NEWS = 0x0F ,
  NFC_URI_TELNET = 0x10 , NFC_URI_IMAP = 0x11 , NFC_URI_RTSP = 0x12 , NFC_URI_URN = 0x13 ,
  NFC_URI_POP = 0x14 , NFC_URI_SIP = 0x15 , NFC_URI_SIPS = 0x16 , NFC_URI_TFTP = 0x17 ,
  NFC_URI_BTSPP = 0x18 , NFC_URI_BTL2CAP = 0x19 , NFC_URI_BTGOEP = 0x1A , NFC_URI_TCPOBEX = 0x1B ,
  NFC_URI_IRDAOBEX = 0x1C , NFC_URI_FILE = 0x1D , NFC_URI_URN_EPC_ID = 0x1E , NFC_URI_URN_EPC_TAG = 0x1F ,
  NFC_URI_URN_EPC_PAT = 0x20 , NFC_URI_URN_EPC_RAW = 0x21 , NFC_URI_URN_EPC = 0x22 , NFC_URI_URN_NFC = 0x23 ,
  NFC_URI_RFU = 0xFF
}
 URI identifier codes according to "URI Record Type Definition" (denotation "NFCForum-TS-RTD_URI_1.0" published on 2006-07-24) chapter 3.2.2. More...
 

Functions

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.
 

Variables

const uint8_t nfc_ndef_uri_rec_type
 External reference to the type field of the URI record, defined in the file uri_rec.c. It is used in the NFC_NDEF_URI_RECORD_DESC_DEF macro.