XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
xwos::Pm类 参考abstract

#include <Pm.hxx>

Public 类型

enum  PmStage : xwsq_t {
  PmStageSuspended = XWOS_PM_STAGE_SUSPENDED , PmStageSuspending = XWOS_PM_STAGE_SUSPENDING , PmStageResuming = XWOS_PM_STAGE_RESUMING , PmStageFreezing = XWOS_PM_STAGE_FREEZING ,
  PmStageThawing = XWOS_PM_STAGE_THAWING , PmStageRunning = XWOS_PM_STAGE_RUNNING
}
 

Public 成员函数

xwer_t suspend ()
 
xwer_t resume ()
 
enum PmStage stage ()
 

Protected 成员函数

 Pm ()
 
 ~Pm ()
 
virtual void onResume ()=0
 
virtual void onSuspend ()=0
 
virtual void onWakeup ()=0
 
virtual void onSleep ()=0
 

静态 Private 成员函数

static void sOnResume (void *obj)
 
static void sOnSuspend (void *obj)
 
static void sOnWakeup (void *obj)
 
static void sOnSleep (void *obj)
 

详细描述

在文件 Pm.hxx32 行定义.

成员枚举类型说明

◆ PmStage

枚举值
PmStageSuspended 

已经暂停

PmStageSuspending 

正在暂停

PmStageResuming 

正在恢复

PmStageFreezing 

正在冻结线程

PmStageThawing 

正在解冻线程

PmStageRunning 

正常运行

在文件 Pm.hxx35 行定义.

35 : xwsq_t {
42 };
@ PmStageFreezing
Definition Pm.hxx:39
@ PmStageRunning
Definition Pm.hxx:41
@ PmStageSuspending
Definition Pm.hxx:37
@ PmStageThawing
Definition Pm.hxx:40
@ PmStageResuming
Definition Pm.hxx:38
@ PmStageSuspended
Definition Pm.hxx:36
unsigned long xwsq_t
Definition type.h:445
#define XWOS_PM_STAGE_RESUMING
Definition pm.h:71
#define XWOS_PM_STAGE_SUSPENDING
Definition pm.h:70
#define XWOS_PM_STAGE_SUSPENDED
Definition pm.h:69
#define XWOS_PM_STAGE_THAWING
Definition pm.h:73
#define XWOS_PM_STAGE_RUNNING
Definition pm.h:74
#define XWOS_PM_STAGE_FREEZING
Definition pm.h:72

构造及析构函数说明

◆ Pm()

xwos::Pm::Pm ( )
protected

◆ ~Pm()

xwos::Pm::~Pm ( )
protected

成员函数说明

◆ onResume()

virtual void xwos::Pm::onResume ( )
protectedpure virtual

◆ onSuspend()

virtual void xwos::Pm::onSuspend ( )
protectedpure virtual

◆ onWakeup()

virtual void xwos::Pm::onWakeup ( )
protectedpure virtual

◆ onSleep()

virtual void xwos::Pm::onSleep ( )
protectedpure virtual

◆ suspend()

xwer_t xwos::Pm::suspend ( )
inline

在文件 Pm.hxx52 行定义.

52{ return xwos_pm_suspend(); }
static xwer_t xwos_pm_suspend(void)
XWOS API:将系统切换为低功耗状态
Definition pm.h:111
函数调用图:

◆ resume()

xwer_t xwos::Pm::resume ( )
inline

在文件 Pm.hxx53 行定义.

53{ return xwos_pm_resume(); }
static xwer_t xwos_pm_resume(void)
XWOS API:唤醒系统
Definition pm.h:127
函数调用图:

◆ stage()

enum PmStage xwos::Pm::stage ( )
inline

在文件 Pm.hxx54 行定义.

54{ return (enum PmStage)xwos_pm_get_stage(); }
PmStage
Definition Pm.hxx:35
static xwsq_t xwos_pm_get_stage(void)
XWOS API:获取当前电源管理阶段
Definition pm.h:143
函数调用图:

◆ sOnResume()

static void xwos::Pm::sOnResume ( void *  obj)
staticprivate

◆ sOnSuspend()

static void xwos::Pm::sOnSuspend ( void *  obj)
staticprivate

◆ sOnWakeup()

static void xwos::Pm::sOnWakeup ( void *  obj)
staticprivate

◆ sOnSleep()

static void xwos::Pm::sOnSleep ( void *  obj)
staticprivate

该类的文档由以下文件生成: