esp_openthread_cli.h 913 B

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