esp_openthread_sleep.h 712 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "sdkconfig.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #ifdef CONFIG_FREERTOS_USE_TICKLESS_IDLE
  13. /**
  14. * @brief This function initializes the OpenThread sleep.
  15. *
  16. * @return
  17. * - ESP_OK on success
  18. * - ESP_FAIL on failure
  19. *
  20. */
  21. esp_err_t esp_openthread_sleep_init(void);
  22. /**
  23. * @brief This function performs the OpenThread sleep process.
  24. *
  25. */
  26. void esp_openthread_sleep_process(void);
  27. /**
  28. * @brief This function performs the OpenThread wakeup process.
  29. *
  30. */
  31. void esp_openthread_wakeup_process(void);
  32. #endif
  33. #ifdef __cplusplus
  34. }
  35. #endif