nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
at_cmd_parser.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef AT_CMD_PARSER_H__
8#define AT_CMD_PARSER_H__
9
10#include <stdlib.h>
11#include <zephyr/types.h>
12
13#include <modem/at_params.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
67int at_parser_max_params_from_str(const char *at_params_str,
68 char **next_param_str,
69 struct at_param_list *const list,
70 size_t max_params_count);
71
107int at_parser_params_from_str(const char *at_params_str, char **next_param_str,
108 struct at_param_list *const list);
109
122
130enum at_cmd_type at_parser_at_cmd_type_get(const char *at_cmd);
131
134#ifdef __cplusplus
135}
136#endif
137
138#endif /* AT_CMD_PARSER_H__ */
Store a list of AT command/response parameters.
at_cmd_type
Definition: at_cmd_parser.h:110
@ AT_CMD_TYPE_SET_COMMAND
Definition: at_cmd_parser.h:116
@ AT_CMD_TYPE_UNKNOWN
Definition: at_cmd_parser.h:114
@ AT_CMD_TYPE_TEST_COMMAND
Definition: at_cmd_parser.h:120
@ AT_CMD_TYPE_READ_COMMAND
Definition: at_cmd_parser.h:118
int at_parser_max_params_from_str(const char *at_params_str, char **next_param_str, struct at_param_list *const list, size_t max_params_count)
Parse a maximum number of AT command or response parameters from a string.
int at_parser_params_from_str(const char *at_params_str, char **next_param_str, struct at_param_list *const list)
Parse AT command or response parameters from a string.
enum at_cmd_type at_parser_at_cmd_type_get(const char *at_cmd)
Identify the AT command type.
List of AT parameters that compose an AT command or response.
Definition: at_params.h:73