esp-idf/components/openthread/private_include/esp_openthread_state.h

32 lines
594 B
C
Raw Normal View History

/*
* 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