1 /*
2  * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include "esp_openthread.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /**
14  * @brief This function initializes the OpenThread command line interface(CLI).
15  *
16  */
17 void esp_openthread_cli_init(void);
18 
19 /**
20  * @brief This function feeds a line to the OpenThread CLI.
21  *
22  * @note This function is thread-safe, the line will be copied and posted to
23  *       the OpenThread task queue.
24  *
25  * @param[in] line  The input line.
26  *
27  * @return
28  *      - ESP_OK on success
29  *      - ESP_ERR_NO_MEM if allocation has failed
30  *
31  */
32 esp_err_t esp_openthread_cli_input(const char *line);
33 
34 /**
35  * @brief This function launches an exclusive loop for the OpenThread CLI.
36  *
37  * @param[in] priority  The priority of the created task.
38  *
39  */
40 void esp_openthread_cli_create_task(void);
41 
42 
43 #ifdef __cplusplus
44 }
45 #endif
46