5.11.0.0R3
Software Development Kit
 
Loading...
Searching...
No Matches
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.
 
void ltrx_power_level_application_register (const struct ltrx_power_level_application *powerLevelApplication)
 Register an application to have a voice in power control.
 
void ltrx_power_level_application_request_full_power (const char *applicationName)
 Application requests full power till further notice.
 

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

◆ ltrx_power_level_application_permit_shutdown()

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.

◆ ltrx_power_level_application_register()

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.

◆ ltrx_power_level_application_request_full_power()

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.