esp_openthread_state.h 594 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <esp_err.h>
  8. #include <esp_openthread.h>
  9. #include <esp_openthread_types.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /**
  14. * @brief This function initiizes OpenThread state event post.
  15. *
  16. * @pram[in] instance The OpenThread instance
  17. *
  18. * @return
  19. * - ESP_OK on success
  20. * - ESP_FAIL if OpenThread state changed callback fails to be registered
  21. *
  22. */
  23. esp_err_t esp_openthread_state_event_init(otInstance *instance);
  24. #ifdef __cplusplus
  25. }
  26. #endif