WL865E4-P  36.07.001
M2MB POWER MANAGEMENT

This section describes the M2MB API for power management module. More...

INT32 m2mb_pwr_mgmt_standby (UINT32 duration)
 m2mb_pwr_mgmt_standby puts the system to standby mode. More...
 
INT32 m2mb_pwr_mgmt_cfg_sleep (UINT32 enable)
 m2mb_pwr_mgmt_cfg_sleep configures the sleep mode. More...
 

Detailed Description

This section describes the M2MB API for power management module.

Power management module provides APIs to put the system in different power save mode. At present only standby mode is available. In standby mode the system is complete off and 8KB of RAM section gets power. After coming out of standby mode, system does the usual bootup.

Function Documentation

◆ m2mb_pwr_mgmt_cfg_sleep()

INT32 m2mb_pwr_mgmt_cfg_sleep ( UINT32  enable)

m2mb_pwr_mgmt_cfg_sleep configures the sleep mode.

m2mb_pwr_mgmt_cfg_sleep is used to enable or disable the sleep mode.

Parameters
[in]enableSet to one to enable sleep mode else set to zero to disable it.
Returns
returns 0 on success, or -ve value code on error
Note
To have better throughput the sleep mode should be disabled. To have better power number sleep mode should be enabled. Example
m2mb_pwr_mgmt_cfg_sleep(1); // Enables the sleep mode
m2mb_pwr_mgmt_cfg_sleep(0); // Disables the sleep mode

◆ m2mb_pwr_mgmt_standby()

INT32 m2mb_pwr_mgmt_standby ( UINT32  duration)

m2mb_pwr_mgmt_standby puts the system to standby mode.

m2mb_pwr_mgmt_standby puts the system in standby mode.

Parameters
[in]durationDuration in msec.
Returns
Returns 0 on success, or -ve value code on error
Note
Once the system goes to power save mode, the state of the system is lost and once it comes out of the standby after the given duration, the system executes from the app_start again. Example
m2mb_pwr_mgmt_standby(10000); //Goes to standby for 10sec
//Code doesn't get executed if the standby processing successful