nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
AT parser

Parser for AT commands and notifications. More...

Modules

 Internal AT parser matching functions.
 Internal AT parser functions for matching AT tokens in a given AT command string.
 
 Represent an AT command prefix or a subparameter value.
 An AT token represents an AT command prefix or a subparameter value.
 

Data Structures

struct  at_parser
 AT parser. More...
 

Macros

#define at_parser_num_get(parser, index, value)
 Type-generic macro for getting an integer value.
 

Enumerations

enum  at_parser_cmd_type { AT_PARSER_CMD_TYPE_UNKNOWN , AT_PARSER_CMD_TYPE_SET , AT_PARSER_CMD_TYPE_READ , AT_PARSER_CMD_TYPE_TEST }
 Identifies the type of a given AT command prefix. More...
 

Functions

int at_parser_init (struct at_parser *parser, const char *at)
 Initialize an AT parser for a given AT command string.
 
int at_parser_cmd_next (struct at_parser *parser)
 Move the cursor of an AT parser to the next command line of its configured AT command string.
 
int at_parser_cmd_type_get (struct at_parser *parser, enum at_parser_cmd_type *type)
 Get the type of the command prefix in the current AT command line.
 
int at_parser_cmd_count_get (struct at_parser *parser, size_t *count)
 Get the number of values that exist in the current AT command line.
 
int at_parser_int16_get (struct at_parser *parser, size_t index, int16_t *value)
 Get a signed 16-bit integer value.
 
int at_parser_uint16_get (struct at_parser *parser, size_t index, uint16_t *value)
 Get an unsigned 16-bit integer value.
 
int at_parser_int32_get (struct at_parser *parser, size_t index, int32_t *value)
 Get a signed 32-bit integer value.
 
int at_parser_uint32_get (struct at_parser *parser, size_t index, uint32_t *value)
 Get an unsigned 32-bit integer value.
 
int at_parser_int64_get (struct at_parser *parser, size_t index, int64_t *value)
 Get a signed 64-bit integer value.
 
int at_parser_uint64_get (struct at_parser *parser, size_t index, uint64_t *value)
 Get an unsigned 64-bit integer value.
 
int at_parser_string_get (struct at_parser *parser, size_t index, char *str, size_t *len)
 Get a string value.
 
int at_parser_string_ptr_get (struct at_parser *parser, size_t index, const char **str_ptr, size_t *len)
 Get a pointer to a string value.
 

Detailed Description

Parser for AT commands and notifications.