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) |
|
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.
[in] | context | User context - power client identifier to be used in HAP_power_set call. |
[in] | max_active_time | Max 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] | periodicity | Frame 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. |
|
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.
[in] | request | Pointer to request structure. |
[in] | max_active_time | Max active time allowed per frame in ms. DCVS selects appropriate operating levels to keep the activity time within the provided maximum allowed time. |
[in] | periodicity | Frame 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. |