nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
parser.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  parser_api
 Set of parser functions needed for parser framework to operate. More...
 
struct  parser
 Set of parser variables needed for parser framework to operate. More...
 

Macros

#define PARSER_BUF_SIZE   180
 

Typedefs

typedef int(* parser_module) (struct parser *parser, uint8_t *buf)
 

Functions

int parser_create (struct parser *parser, struct parser_api *api)
 Parser instance creation.
 
int parser_delete (struct parser *parser)
 Parser instance deletion.
 
int parser_process_str (struct parser *parser, const char *data)
 Parse ASCII formatted hexadecimal string.
 
int parser_get_payload (struct parser *parser, char *buf, uint8_t buf_size)
 Get the payload.
 
int parser_get_header (struct parser *parser, void *header)
 Get the header.