XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
pm.h
浏览该文件的文档.
1
13#ifndef __xwos_osal_pm_h__
14#define __xwos_osal_pm_h__
15
16#include <xwos/standard.h>
17#include <xwos/osal/jack/pm.h>
18
62typedef xwosdl_pm_cb_f xwos_pm_cb_f;
63
69#define XWOS_PM_STAGE_SUSPENDED XWOSDL_PM_STAGE_SUSPENDED
70#define XWOS_PM_STAGE_SUSPENDING XWOSDL_PM_STAGE_SUSPENDING
71#define XWOS_PM_STAGE_RESUMING XWOSDL_PM_STAGE_RESUMING
72#define XWOS_PM_STAGE_FREEZING XWOSDL_PM_STAGE_FREEZING
73#define XWOS_PM_STAGE_THAWING XWOSDL_PM_STAGE_THAWING
74#define XWOS_PM_STAGE_RUNNING XWOSDL_PM_STAGE_RUNNING
92 xwos_pm_cb_f suspend_cb,
93 xwos_pm_cb_f wakeup_cb,
94 xwos_pm_cb_f sleep_cb,
95 void * arg)
96{
97 return xwosdl_pm_set_cb(resume_cb, suspend_cb, wakeup_cb, sleep_cb, arg);
98}
99
112{
113 return xwosdl_pm_suspend();
114}
115
128{
129 return xwosdl_pm_resume();
130}
131
144{
145 return xwosdl_pm_get_stage();
146}
147
152#endif /* xwos/osal/pm.h */
#define __xwos_inline_api
Definition compiler.h:179
signed long xwer_t
Definition type.h:554
unsigned long xwsq_t
Definition type.h:445
xwosdl_pm_cb_f xwos_pm_cb_f
电源管理回调函数指针类型
Definition pm.h:62
static xwsq_t xwos_pm_get_stage(void)
XWOS API:获取当前电源管理阶段
Definition pm.h:143
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:设置电源管理的回调函数
Definition pm.h:91
static xwer_t xwos_pm_resume(void)
XWOS API:唤醒系统
Definition pm.h:127
static xwer_t xwos_pm_suspend(void)
XWOS API:将系统切换为低功耗状态
Definition pm.h:111
操作系统抽象层:电源管理
XWOS的标准头文件