Function QnnDevice_getInfrastructure

Function Documentation

Qnn_ErrorHandle_t QnnDevice_getInfrastructure(const QnnDevice_Infrastructure_t *deviceInfra)

Get device hardware infrastructure interface object.

This is optional capability, support is advertised via QnnProperty. If supported, please refer to documentation and/or header file provided by the backend for usage information.

Parameters

deviceInfra[out] Pointer to infrastructure interface object. The pointer returned is a backend owned memory.

Returns

Error code:

  • QNN_SUCCESS: No error encountered

  • QNN_DEVICE_ERROR_INVALID_HANDLE: device is not a valid handle

  • QNN_DEVICE_ERROR_UNSUPPORTED_FEATURE: API is not supported

  • QNN_DEVICE_ERROR_INVALID_ARGUMENT: if deviceInfra is NULL

  • QNN_DEVICE_ERROR_MEM_ALLOC: insufficient memory to return deviceInfra

Note

Use corresponding API through QnnInterface_t.