• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef TEST_SUITE_COMMANDS_PROCESSOR_H
17 #define TEST_SUITE_COMMANDS_PROCESSOR_H
18 
19 #include <stdint.h>
20 #include "common_def.h"
21 
22 #ifdef __cplusplus
23 #if __cplusplus
24 extern "C" {
25 #endif /* __cplusplus */
26 #endif /* __cplusplus */
27 
28 /**
29  * @defgroup test_common_testsuite_cmd_processor Commands Processor
30  * @ingroup  test_common_testsuite
31  * @{
32  */
33 
34 /**
35  * @if Eng
36  * @brief  Prase test suite commands.
37  * @param  [in]  commands user input commands over char process.
38  * @else
39  * @brief  命令解析。
40  * @param  [in]  commands 经过单字节处理之后的输入命令集。
41  * @endif
42  */
43 void test_suite_commands_prase(char *commands);
44 
45 /**
46  * @if Eng
47  * @brief  Timer callback function.
48  * @param  [in]  data timer id.
49  * @else
50  * @brief  定时器回调函数。
51  * @param  [in]  data 定时器id.
52  * @endif
53  */
54 void test_suite_commands_timeout_callback(uintptr_t data);
55 
56 /**
57  * @}
58  */
59 
60 #ifdef __cplusplus
61 #if __cplusplus
62 }
63 #endif /* __cplusplus */
64 #endif /* __cplusplus */
65 
66 #endif
67