get_pwr_lvl_freq()

Get the frequency of a given power level from a DVFS table

Synopsis:

#include <hw/dvfs_api.h>

uint32_t get_pwr_lvl_freq( void *handle,
                           uint8_t pwr_level );

Arguments:

handle
A pointer to the global Dynamic Voltage Frequency Scaling (DVFS) structure.
pwr_level
The power level that you want the frequency for.

Description:

The get_pwr_lvl_freq() function returns the allowed frequency for a given power level.

Returns:

The corresponding frequency of the given power level, or -1 if the power level isn't valid.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes