XWOS API
4.0
XWOS C/C++ API参考手册
|
操作系统抽象层:电源管理 更多...
宏定义 | |
#define | XWOS_PM_STAGE_SUSPENDED XWOSDL_PM_STAGE_SUSPENDED |
#define | XWOS_PM_STAGE_SUSPENDING XWOSDL_PM_STAGE_SUSPENDING |
#define | XWOS_PM_STAGE_RESUMING XWOSDL_PM_STAGE_RESUMING |
#define | XWOS_PM_STAGE_FREEZING XWOSDL_PM_STAGE_FREEZING |
#define | XWOS_PM_STAGE_THAWING XWOSDL_PM_STAGE_THAWING |
#define | XWOS_PM_STAGE_RUNNING XWOSDL_PM_STAGE_RUNNING |
类型定义 | |
typedef xwosdl_pm_cb_f | xwos_pm_cb_f |
电源管理回调函数指针类型 | |
函数 | |
static void | xwos_pm_set_cb (xwos_pm_cb_f resume_cb, xwos_pm_cb_f suspend_cb, xwos_pm_cb_f wakeup_cb, xwos_pm_cb_f sleep_cb, void *arg) |
XWOS API:设置电源管理的回调函数 | |
static xwer_t | xwos_pm_suspend (void) |
XWOS API:将系统切换为低功耗状态 | |
static xwer_t | xwos_pm_resume (void) |
XWOS API:唤醒系统 | |
static xwsq_t | xwos_pm_get_stage (void) |
XWOS API:获取当前电源管理阶段 | |
操作系统抽象层:电源管理
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
在文件 pm.h 中定义.