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.

 

 

Low power mode power management functions:


pmPowerDown

Power down the device and reset when an event happens.


PowerDown

Powers the device down for a certain number of seconds.


pmWaitEvent

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

 


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.

 

 

Functions for control of vibration detection:


pmSetVibrationsensitivity

Sets the sensitivity of the Vibration sensor.


pmVibration

Query whether vibration has been detected since last call.

 

Power management functions for control of the power usage.


pmExternalPower

Enable/disable the external power to run on battery.


pmGetPowerFail

Returns the device behavior when external power fails.


pmPowerFail

Sets device behavior when external power fails.


pmSetSpeed

Control the speed of execution.

 

Sleep functions.


DeepSleep

Makes the device sleep for a number of milliseconds by entering power saving sleep mode.


pmDeepSleep

Makes the device sleep for a number of milliseconds by entering power saving sleep mode.


Sleep

Makes the device sleep for a number of milliseconds.