PWRM_getSetpointInfo
2-320
C Interface
Syntax
status = PWRM_getSetpointInfo(setpoint, frequency, voltage);
Parameters
Uns
setpoint;
/* the setpoint to query */
float
*frequency;
/* DSP core frequency */
float
*voltage;
/* DSP voltage */
Return Value
PWRM_Status status;
/* returned status */
Reentrant
yes
Description
PWRM_getSetpointInfo returns the DSP CPU frequency and voltage for
a given setpoint.
The setpoint parameter should specify the setpoint value for which you
want to know the frequency and voltage on this platform. See
PWRM_changeSetpoint for a list of valid setpoints.
The frequency parameter should point to the location where
PWRM_getSetpointInfo should write the DSP core frequency for the
specified setpoint.
The voltage parameter should point to the location where
PWRM_getSetpointInfo should write the DSP voltage for the specified
setpoint.
PWRM_getSetpointInfo returns one of the following constants as a status
value of type PWRM_Status:
PWRM_getSetpointInfo
Get frequency and CPU core voltage for a setpoint
Name
Usage
PWRM_SOK
The operation succeeded.
PWRM_EFAIL
A general failure occurred.
PWRM_EINVALIDVALUE
The operation failed because the setpoint
parameter was invalid.
PWRM_EINVALIDPOINTER
The operation failed because the
frequency or voltage parameter was NULL.
PWRM_EINITFAILURE
A failure occurred while initializing V/F scal-
ing support; V/F scaling is unavailable
PWRM_ENOTIMPLEMENTED
The operation failed because V/F scaling is
not supported.