mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
42 lines
686 B
C
42 lines
686 B
C
|
/*
|
||
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "esp_err.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#ifdef CONFIG_IEEE802154_SLEEP_ENABLE
|
||
|
/**
|
||
|
* @brief This function initializes the OpenThread sleep.
|
||
|
*
|
||
|
* @return
|
||
|
* - ESP_OK on success
|
||
|
* - ESP_FAIL on failure
|
||
|
*
|
||
|
*/
|
||
|
esp_err_t esp_openthread_sleep_init(void);
|
||
|
|
||
|
/**
|
||
|
* @brief This function performs the OpenThread sleep process.
|
||
|
*
|
||
|
*/
|
||
|
void esp_openthread_sleep_process(void);
|
||
|
|
||
|
/**
|
||
|
* @brief This function performs the OpenThread wakeup process.
|
||
|
*
|
||
|
*/
|
||
|
void esp_openthread_wakeup_process(void);
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|