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

◆ at_parser_num_get

#define at_parser_num_get (   parser,
  index,
  value 
)

#include <include/modem/at_parser.h>

Value:
_Generic((value), \
int16_t * : at_parser_int16_get, \
uint16_t * : at_parser_uint16_get, \
int32_t * : at_parser_int32_get, \
uint32_t * : at_parser_uint32_get, \
int64_t * : at_parser_int64_get, \
uint64_t * : at_parser_uint64_get \
)(parser, index, 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_uint32_get(struct at_parser *parser, size_t index, uint32_t *value)
Get an unsigned 32-bit integer value.
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_int64_get(struct at_parser *parser, size_t index, int64_t *value)
Get a signed 64-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_uint64_get(struct at_parser *parser, size_t index, uint64_t *value)
Get an unsigned 64-bit integer value.
Set of parser variables needed for parser framework to operate.
Definition: parser.h:55

Type-generic macro for getting an integer value.

Parameters
[in]parserAT parser.
[in]indexSubparameter index in the current AT command line configured in parser.
[out]valueSubparameter value.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.
-EINVALOne or more of the supplied parameters are invalid.
-EPERMparser has not been initialized.
-EOPNOTSUPPOperation not supported for the type of value at the given index.
-ERANGEParsed integer value is out of range for the expected type.
-EBADMSGThe AT command string is malformed.
-EAGAINParsing of the current AT command line is terminated and a subsequent line is available. Returned when index is greater than the maximum index for the current AT command line.
-EIOThere is nothing more to parse in the AT command string configured in parser. Returned when index is greater than the maximum index for the current AT command line.