| 12345678910111213141516171819202122232425262728293031 |
- /*
- * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
- *
- * SPDX-License-Identifier: Apache-2.0
- */
- #pragma once
- #include <esp_err.h>
- #include <esp_openthread.h>
- #include <esp_openthread_types.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- /**
- * @brief This function initiizes OpenThread state event post.
- *
- * @pram[in] instance The OpenThread instance
- *
- * @return
- * - ESP_OK on success
- * - ESP_FAIL if OpenThread state changed callback fails to be registered
- *
- */
- esp_err_t esp_openthread_state_event_init(otInstance *instance);
- #ifdef __cplusplus
- }
- #endif
|