3.3.0.0R11
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
Power

Data Structures

struct  ltrx_power_level_application
 Represents a power level application for registration. More...
 

Functions

void ltrx_power_level_application_permit_shutdown (const char *applicationName, uint32_t durationSeconds)
 Application permits shutdown for specified time duration. More...
 
void ltrx_power_level_application_register (const struct ltrx_power_level_application *powerLevelApplication)
 Register an application to have a voice in power control. More...
 
void ltrx_power_level_application_request_full_power (const char *applicationName)
 Application requests full power till further notice. More...
 

Detailed Description

Power allows applications to declare their permission to enter a low power mode, and allows the end user to specify which applications have a voice in this regard.

Function Documentation

void ltrx_power_level_application_permit_shutdown ( const char *  applicationName,
uint32_t  durationSeconds 
)

Application permits shutdown for specified time duration.

This only has effect if the application is enabled in Power configuration.

Parameters
[in]applicationNameName of the application.
[in]durationSecondsZero value represents infinity.
void ltrx_power_level_application_register ( const struct ltrx_power_level_application powerLevelApplication)

Register an application to have a voice in power control.

Registration must be done in early module initialization.

Parameters
[in]powerLevelApplicationProvides name and help for the application.
void ltrx_power_level_application_request_full_power ( const char *  applicationName)

Application requests full power till further notice.

This only has effect if the application is enabled in Power configuration.

Parameters
[in]applicationNameName of the application.