nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
text_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_text_rec_payload
 Text record payload descriptor. More...
 

Macros

#define NFC_NDEF_TEXT_REC_TYPE_LENGTH   1
 Size of the type field of the Text record, defined in the file text_rec.c. It is used in the NFC_NDEF_TEXT_RECORD_DESC_DEF macro.
 
#define NFC_NDEF_TEXT_RECORD_DESC_DEF(name, utf_arg, lang_code_arg, lang_code_len_arg, data_arg, data_len_arg)
 Macro for creating and initializing an NFC NDEF record descriptor for a Text record.
 
#define NFC_NDEF_TEXT_RECORD_DESC(name)   NFC_NDEF_GENERIC_RECORD_DESC(name)
 Macro for accessing the NFC NDEF Text record descriptor instance that was created with NFC_NDEF_TEXT_RECORD_DESC_DEF.
 

Enumerations

enum  nfc_ndef_text_rec_utf { UTF_8 = 0 , UTF_16 = 1 }
 Type of the Unicode Transformation Format. More...
 

Functions

int nfc_ndef_text_rec_payload_encode (struct nfc_ndef_text_rec_payload *nfc_rec_text_payload_desc, uint8_t *buff, uint32_t *len)
 Constructor for an NFC NDEF Text record payload.
 

Variables

const uint8_t nfc_ndef_text_rec_type_field []
 External reference to the type field of the Text record, defined in the file text_rec.c. It is used in the NFC_NDEF_TEXT_RECORD_DESC_DEF macro.