Typedef QnnHtpPerfInfrastructure_SetPowerConfigFn_t¶
Defined in File QnnHtpPerfInfrastructure.h
Typedef Documentation¶
-
typedef Qnn_ErrorHandle_t (*QnnHtpPerfInfrastructure_SetPowerConfigFn_t)(uint32_t powerConfigId, const QnnHtpPerfInfrastructure_PowerConfig_t **config)¶
This API allows client to set up system power configuration that will enable different performance modes. This API uses HAP_power_dcvs_v3_payload struct to config HAP power parameters. Detailed HAP power parameters description please refer to Hexagon SDK HAP_power_dcvs_v3_payload documentation.
- Param powerConfigId
[in] A power client id to associate calls to system power settings. A value of 0 implies NULL power client id and can override every other setting the user process. To enable power settings for multiple clients in the same process, use a non-zero power client id.
- Param config
[in] Pointer to a NULL terminated array of config option for performance configuration. NULL is allowed and indicates no config options are provided.
- Return
Error code
QNN_SUCCESS: No error encountered
QNN_HTP_PERF_INFRASTRUCTURE_ERROR_INVALID_INPUT if power configuration does not exist
QNN_COMMON_ERROR_SYSTEM_COMMUNICATION: SSR occurence (successful recovery)
QNN_COMMON_ERROR_SYSTEM_COMMUNICATION_FATAL: SSR occurence (unsuccessful recovery)