mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(openthread): support multipan feature for RCP
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -155,6 +155,37 @@ void esp_openthread_set_storage_name(const char *name);
|
||||
*/
|
||||
uint32_t esp_openthread_get_alloc_caps(void);
|
||||
|
||||
/**
|
||||
* @brief This function gets the index of the instance
|
||||
*
|
||||
* @param[in] instance The OpenThread instance.
|
||||
*
|
||||
* @note Invalid input is logged and asserted.
|
||||
*
|
||||
* @return
|
||||
* - The index of the instance
|
||||
*/
|
||||
int8_t esp_openthread_get_idx_from_instance(otInstance *instance);
|
||||
|
||||
/**
|
||||
* @brief This function gets the instance from the index
|
||||
*
|
||||
* @param[in] idx The index of the instance.
|
||||
*
|
||||
* @note Invalid index is logged and asserted. A valid index always has an instance.
|
||||
*
|
||||
* @return
|
||||
* - The instance
|
||||
*/
|
||||
otInstance *esp_openthread_get_instance_from_idx(int8_t idx);
|
||||
|
||||
/**
|
||||
* @brief This function sets the active instance
|
||||
*
|
||||
* @param[in] instance The OpenThread instance.
|
||||
*/
|
||||
void esp_openthread_set_active_instance(otInstance *instance);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // end of extern "C"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user