PWRM_getTransitionLatency
2-322
C Interface
Syntax
status = PWRM_getTransitionLatency(initialSetpoint, finalSetpoint,
frequencyLatency, voltageLatency);
Parameters
Uns
initialSetpoint;
/* setpoint to be scaled from */
Uns
finalSetpoint;
/* setpoint to be scaled to */
Uns
*frequencyLatency;
/* frequency transition latency */
Uns
*voltageLatency;
/* voltage transition latency */
Return Value
PWRM_Status status;
/* returned status */
Reentrant
yes
Description
PWRM_getTransitionLatency retrieves the latencies (times required) in
microseconds to scale from a specific setpoint to another specific
setpoint.
The initialSetpoint parameter should specify the setpoint from which the
transition would start. The finalSetpoint parameter should specify the
setpoint at which the transition would end. See PWRM_changeSetpoint
for a list of valid setpoints.
The frequencyLatency parameter should point to the location where
PWRM_getTransitionLatency should write the time required to change
the CPU frequency from that of the initialSetpoint to that of the
finalSetpoint in microseconds.
Similarly, the voltageLatency should point to the location where
PWRM_getTransitionLatency should write the time required to change
the voltage from that of the initialSetpoint to that of the finalSetpoint in
microseconds.
When frequency and voltage are scaled together, the total latency is the
sum of the frequency scaling latency and the voltage scaling latency.
PWRM_getTransitionLatency returns one of the following constants as a
status value of type PWRM_Status:
PWRM_getTransitionLatency
Get latency to scale between specific setpoints
Name
Usage
PWRM_SOK
The operation succeeded.
PWRM_EFAIL
A general failure occurred.