pm: Power management

Top  Previous  Next

As demands for flexible power management has increased for realizing more battery efficient solutions, a new group of power management functions are available which implements the possibilities to control the power usage of the RTCU. The new features offer the application to stop executing and wait for an event to occur before proceeding operation from the location where the program was stopped. Another feature is control of the RTCU execution speed and how the device should behave when an external power fail occurs.

 

Power management functions for control of the power usage.

 


pmPowerDown

Power down the device and reset when an event happens.


pmExternalPower

Enable/disable the external power to run on battery.


pmDeepSleep

Makes device sleep for a number milliseconds.


pmPowerFail

Sets device behavior when external power fails.


pmWaitEvent

Makes device sleep until an event happens by entering a power saving sleep mode.


pmSetVibrationsensitivity

Sets the sensitivity of the Vibration sensor.


pmVibration

Query whether vibration has been detected since last call.


pmSetSpeed

Control the speed of execution.


pmSuspend

Makes device sleep until an event happens by entering a power saving sleep mode.


pmGetWakeSource

Converts the return code from pmSuspend into usable values.


pmGetWakeSourceString

Converts the return code from pmSuspend into a string for debugging.