nRF Connect SDK API
2.8.99
Loading...
Searching...
No Matches
at_token.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef AT_TOKEN_H__
8
#define AT_TOKEN_H__
9
10
#include <zephyr/types.h>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
26
enum
at_token_type
{
28
AT_TOKEN_TYPE_INVALID
,
30
AT_TOKEN_TYPE_CMD_TEST
,
32
AT_TOKEN_TYPE_CMD_READ
,
34
AT_TOKEN_TYPE_CMD_SET
,
36
AT_TOKEN_TYPE_NOTIF
,
38
AT_TOKEN_TYPE_INT
,
40
AT_TOKEN_TYPE_QUOTED_STRING
,
42
AT_TOKEN_TYPE_ARRAY
,
44
AT_TOKEN_TYPE_EMPTY
,
46
AT_TOKEN_TYPE_STRING
,
47
};
48
50
enum
at_token_var
{
51
AT_TOKEN_VAR_NO_COMMA
,
52
AT_TOKEN_VAR_COMMA
53
};
54
56
struct
at_token
{
57
const
char
*
start
;
58
size_t
len
;
59
enum
at_token_type
type
;
60
enum
at_token_var
var
;
61
};
62
65
#ifdef __cplusplus
66
}
67
#endif
68
69
#endif
/* AT_TOKEN_H__ */
at_token_var
at_token_var
AT token variants based on the presence or absence of a comma after the subparameter.
Definition
at_token.h:50
AT_TOKEN_VAR_COMMA
@ AT_TOKEN_VAR_COMMA
Definition
at_token.h:52
AT_TOKEN_VAR_NO_COMMA
@ AT_TOKEN_VAR_NO_COMMA
Definition
at_token.h:51
at_token_type
at_token_type
AT token types that can be matched from an AT command string.
Definition
at_token.h:26
AT_TOKEN_TYPE_CMD_TEST
@ AT_TOKEN_TYPE_CMD_TEST
Definition
at_token.h:30
AT_TOKEN_TYPE_QUOTED_STRING
@ AT_TOKEN_TYPE_QUOTED_STRING
Definition
at_token.h:40
AT_TOKEN_TYPE_NOTIF
@ AT_TOKEN_TYPE_NOTIF
Definition
at_token.h:36
AT_TOKEN_TYPE_CMD_SET
@ AT_TOKEN_TYPE_CMD_SET
Definition
at_token.h:34
AT_TOKEN_TYPE_CMD_READ
@ AT_TOKEN_TYPE_CMD_READ
Definition
at_token.h:32
AT_TOKEN_TYPE_STRING
@ AT_TOKEN_TYPE_STRING
Definition
at_token.h:46
AT_TOKEN_TYPE_ARRAY
@ AT_TOKEN_TYPE_ARRAY
Definition
at_token.h:42
AT_TOKEN_TYPE_INVALID
@ AT_TOKEN_TYPE_INVALID
Definition
at_token.h:28
AT_TOKEN_TYPE_EMPTY
@ AT_TOKEN_TYPE_EMPTY
Definition
at_token.h:44
AT_TOKEN_TYPE_INT
@ AT_TOKEN_TYPE_INT
Definition
at_token.h:38
at_token::start
const char * start
Definition
at_token.h:57
at_token::var
enum at_token_var var
Definition
at_token.h:60
at_token::len
size_t len
Definition
at_token.h:58
at_token::type
enum at_token_type type
Definition
at_token.h:59
at_token
An AT token is defined with a start pointer, a length, a type, and a variant.
Definition
at_token.h:56
lib
at_parser
at_token.h
Generated on Tue Nov 5 2024 16:02:09 for nRF Connect SDK API by
1.12.0