WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
Lowpower
Lowpower 的协作图:

结构体

struct  PowerMgrInfoItem
 
struct  PowerMgrInfo
 
struct  PowerMgrRunOps
 
struct  PowerMgrParameter
 

宏定义

#define LOS_ERRNO_LPM_INIT_NULL   LOS_ERRNO_OS_ERROR(LOS_MOD_TSK, 0x01)
 

类型定义

typedef enum LOS_SLEEP_MODE LosSleepMode
 

枚举

enum  LOS_SLEEP_MODE { LOS_SLEEP_NORMAL = 0 , LOS_SLEEP_LIGHT , LOS_SLEEP_DEEP , LOS_SLEEP_MAX }
 

函数

UINT32 LOS_PowerMgrInit (const PowerMgrParameter *para)
 Init the power manager framework.
 
UINT32 LOS_SleepTicksGet (void)
 Get predicted sleep ticks.
 

详细描述

宏定义说明

◆ LOS_ERRNO_LPM_INIT_NULL

#define LOS_ERRNO_LPM_INIT_NULL   LOS_ERRNO_OS_ERROR(LOS_MOD_TSK, 0x01)

Lowpower error code: Null parameter.

Value: 0x02000201.

Solution: Check the parameter.

类型定义说明

◆ LosSleepMode

Sleep modes

枚举类型说明

◆ LOS_SLEEP_MODE

Sleep modes

枚举值
LOS_SLEEP_NORMAL 
LOS_SLEEP_LIGHT 

Light sleep mode

LOS_SLEEP_DEEP 

Deep sleep mode

LOS_SLEEP_MAX 

Reserved value, which is invalid now

函数说明

◆ LOS_PowerMgrInit()

UINT32 LOS_PowerMgrInit ( const PowerMgrParameter para)
extern

Init the power manager framework.

Description:
This API is used to init the power manager framework.
注意
None.
参数
para[IN] The power manager parameter.
返回值
None.
Dependency:
  • los_lowpower_impl.h: the header file that contains the API declaration.
参见
None.
自从
Huawei LiteOS V200R005C10

◆ LOS_SleepTicksGet()

UINT32 LOS_SleepTicksGet ( void  )
extern

Get predicted sleep ticks.

Description:
This API is used to get predicted sleep ticks.
注意
None.
参数
None.
返回值
UINT32Sleep ticks.
Dependency:
参见
None.
自从
Huawei LiteOS V200R005C10