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

Go to the source code of this file.

Data Structures

struct  nfc_ndef_tnep_rec_status
 TNEP Status. More...
 
struct  nfc_ndef_tnep_rec_svc_select
 Service structure. More...
 
struct  nfc_ndef_tnep_rec_svc_param
 Service Parameters in the TNEP's Initial NDEF message. More...
 

Macros

#define NFC_NDEF_TNEP_REC_TYPE_LEN   2
 
#define NFC_TNEP_STATUS_RECORD_DESC_DEF(_name, _status)
 Macro for creating and initializing a NFC NDEF record descriptor for a TENP Status Record.
 
#define NFC_TNEP_SERIVCE_SELECT_RECORD_DESC_DEF(_name, _uri_length, _uri)
 Macro for creating and initializing a NFC NDEF record descriptor for a TNEP Service Select Record.
 
#define NFC_TNEP_SERIVCE_PARAM_RECORD_DESC_DEF(_name, _tnep_version, _uri_length, _uri, _mode, _min_time, _max_time_ext, _max_message_size)
 Macro for creating and initializing a NFC NDEF record descriptor for a TNEP Service Parameter Record.
 
#define NFC_NDEF_TNEP_RECORD_DESC(_name)   NFC_NDEF_GENERIC_RECORD_DESC(_name)
 Macro for accessing the NFC NDEF TNEP record descriptor instance that was created with NFC_NDEF_TNEP_RECORD_DESC.
 

Functions

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.
 
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.
 
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.
 

Variables

const uint8_t nfc_ndef_tnep_rec_type_svc_param []
 
const uint8_t nfc_ndef_tnep_rec_type_svc_select []
 
const uint8_t nfc_ndef_tnep_rec_type_status []