HAP_dcvs APIs
DSP Power & Performance Management
Helper APIs for DCVS Duty Cycle

Functions

static int HAP_set_dcvs_v3_duty_cycle (void *context, uint32 max_active_time, uint32 periodicity)
 
static int HAP_set_dcvs_v3_duty_cycle_params (HAP_power_request_t *request, uint32 max_active_time, uint32 periodicity)
 

Detailed Description

Function Documentation

◆ HAP_set_dcvs_v3_duty_cycle()

static int HAP_set_dcvs_v3_duty_cycle ( void *  context,
uint32  max_active_time,
uint32  periodicity 
)
inlinestatic

Method to enable DCVS Duty Cycle.

Calls HAP_power_set API with the provided context and selects DCVS duty cycle mode via HAP_power_set_DCVS_v3 request type.

Parameters
[in]contextUser context - power client identifier to be used in HAP_power_set call.
[in]max_active_timeMax active time allowed per frame in ms (optional, can pass 0 if don’t want to specify). DCVS selects appropriate operating levels to keep the activity time within the provided maximum allowed time.
[in]periodicityFrame time in ms (optional, can pass 0 if don’t want to specify periodicity). For example, periodicity = 100 (milli-seconds) for a 10 FPS activity. DCVS uses this as a hint while predicting activity.
Returns
0 upon success.
Nonzero upon failure.
AEE_EVERSIONNOTSUPPORT if unsupported.

◆ HAP_set_dcvs_v3_duty_cycle_params()

static int HAP_set_dcvs_v3_duty_cycle_params ( HAP_power_request_t *  request,
uint32  max_active_time,
uint32  periodicity 
)
inlinestatic

Method to set duty cycle threshold params (periodicity and activity time hints) in the request structure intended for HAP_power_set for request type set to HAP_power_set_DCVS_v3.

Sets the max_active_time and periodicity fields under dcvs_v3 payload of given request structure.

Note: Request type should be set to HAP_power_set_DCVS_v3.

Parameters
[in]requestPointer to request structure.
[in]max_active_timeMax active time allowed per frame in ms. DCVS selects appropriate operating levels to keep the activity time within the provided maximum allowed time.
[in]periodicityFrame time in ms (optional, can pass 0 if don’t want to specify periodicity). For example, periodicity = 100 (milli-seconds) for a 10 FPS activity. DCVS uses this as a hint while predicting activity.
Returns
0 upon success.
Nonzero upon failure.
AEE_EVERSIONNOTSUPPORT if unsupported.