mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
32 lines
594 B
C
32 lines
594 B
C
/*
|
|
* 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
|