get_pwr_lvl_volt()

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

Synopsis:

#include <hw/dvfs_api.h>

uint32_t get_pwr_lvl_volt( 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 voltage for.

Description:

The get_pwr_lvl_volt() function returns the voltage level for a given power level.

Returns:

The corresponding voltage 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