nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
msg_parser.h File Reference
#include <stdint.h>
#include <zephyr/types.h>
#include <nfc/ndef/record_parser.h>
#include <nfc/ndef/msg.h>

Go to the source code of this file.

Data Structures

struct  nfc_ndef_msg_parser_msg_1
 Memory allocated for a one-record message. More...
 
struct  nfc_ndef_msg_parser_msg_2
 Memory allocated for a two-record message. More...
 

Macros

#define NFC_NDEF_MSG_PARSER_DELTA
 Amount of memory that is required per record in addition to the memory allocated for the message descriptor.
 
#define NFC_NDEF_PARSER_REQUIRED_MEM(max_count_of_records)
 Calculate the memory size required for holding the description of a message that consists of a certain number of NDEF records.
 

Functions

int nfc_ndef_msg_parse (uint8_t *result_buf, uint32_t *result_buf_len, const uint8_t *raw_data, uint32_t *raw_data_len)
 Parse NFC NDEF messages.
 
void nfc_ndef_msg_printout (const struct nfc_ndef_msg_desc *msg_desc)
 Print the parsed contents of an NDEF message.