同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Provides device power management functions.
This module is used to reboot the device and set low power consumption for the device.
Since:
1.0
Version:
1.0
LpcInit (void) |
|
LpcSetType (LpcType type) |
|
RebootDevice (RebootCause cause) |
enum [LpcType](Power.md#gaa6139ca73fa81742134fe74345ccb748)
Description:
Enumerates low power consumption modes.
NO_SLEEP | |
LIGHT_SLEEP | |
DEEP_SLEEP |
enum [RebootCause](Power.md#gaeac1b873015f5b0a8aa7f3c068507426)
Description:
Enumerates reboot causes.
unsigned int LpcInit (void )
Description:
Initializes low power consumption.
Returns:
Returns WIFI_IOT_SUCCESS if the operation is successful; Returns an error code defined in wifiiot_errno.h otherwise.
unsigned int LpcSetType ([LpcType](Power.md#gaa6139ca73fa81742134fe74345ccb748) type)
Description:
Sets low power consumption for the device.
Parameters:
type | Indicates the low power consumption mode to set. |
Returns:
Returns WIFI_IOT_SUCCESS if the operation is successful; Returns an error code defined in wifiiot_errno.h otherwise.
void RebootDevice ([RebootCause](Power.md#gaeac1b873015f5b0a8aa7f3c068507426) cause)
Description:
Reboots the device using different causes.
Parameters:
cause | Indicates the reboot cause. |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。