# QairtOpConfig

Op configuration API — set inputs, outputs, and parameters.

**Include:** `#include "QairtOpConfig/QairtOpConfig.h"`

- struct QairtOpConfig\_V1\_t

    - *#include &lt;QairtOpConfig.h&gt;*

Public Members

- uint64\_t size

    - 

- [Qairt\_GetInterfaceFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv422Qairt_GetInterfaceFn_t) getInterface

    - 

- [QairtOpConfig\_CreateFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv424QairtOpConfig_CreateFn_t) create

    - 

- [QairtOpConfig\_FreeFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_FreeFn_t) free

    - 

- [QairtOpConfig\_SetNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv425QairtOpConfig_SetNameFn_t) setName

    - 

- [QairtOpConfig\_GetNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv425QairtOpConfig_GetNameFn_t) getName

    - 

- [QairtOpConfig\_SetPackageNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv432QairtOpConfig_SetPackageNameFn_t) setPackageName

    - 

- [QairtOpConfig\_GetPackageNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv432QairtOpConfig_GetPackageNameFn_t) getPackageName

    - 

- [QairtOpConfig\_SetTypeNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv429QairtOpConfig_SetTypeNameFn_t) setTypeName

    - 

- [QairtOpConfig\_GetTypeNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv429QairtOpConfig_GetTypeNameFn_t) getTypeName

    - 

- [QairtOpConfig\_SetParamsFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv427QairtOpConfig_SetParamsFn_t) setParams

    - 

- [QairtOpConfig\_GetNumParamsFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv430QairtOpConfig_GetNumParamsFn_t) getNumParams

    - 

- [QairtOpConfig\_GetParamAtFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv428QairtOpConfig_GetParamAtFn_t) getParamAt

    - 

- [QairtOpConfig\_SetInputTensorsFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv433QairtOpConfig_SetInputTensorsFn_t) setInputTensors

    - 

- [QairtOpConfig\_GetNumInputTensorsFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv436QairtOpConfig_GetNumInputTensorsFn_t) getNumInputTensors

    - 

- [QairtOpConfig\_GetInputTensorAtFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv434QairtOpConfig_GetInputTensorAtFn_t) getInputTensorAt

    - 

- [QairtOpConfig\_SetOutputTensorsFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv434QairtOpConfig_SetOutputTensorsFn_t) setOutputTensors

    - 

- [QairtOpConfig\_GetNumOutputTensorsFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv437QairtOpConfig_GetNumOutputTensorsFn_t) getNumOutputTensors

    - 

- [QairtOpConfig\_GetOutputTensorAtFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv435QairtOpConfig_GetOutputTensorAtFn_t) getOutputTensorAt

    -

Functions

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_create([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) \*opConfigHandle)

    - Create an OpConfig handle.

- Parameters

    - **opConfigHandle** – **[out]** A handle to the created OpConfig.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *opConfigHandle* is NULL
- QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC: Memory allocation error while creating OpConfig

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_free([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle)

    - Free an OpConfig handle.

- Parameters

    - **opConfigHandle** – **[in]** A handle to the OpConfig to be freed.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC: Memory deallocation error

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_setName([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, const char \*name)

    - Set the name of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **name** – **[in]** The name to set for the OpConfig.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *name* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getName([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, const char \*\*name)

    - Get the name of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **name** – **[out]** The retrieved name.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *name* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_setPackageName([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, const char \*pkgName)

    - Set the package name of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **pkgName** – **[in]** The package name to set for the OpConfig.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *pkgName* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getPackageName([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, const char \*\*pkgName)

    - Get the package name of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **pkgName** – **[out]** The retrieved package name.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *pkgName* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_setTypeName([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, const char \*typeName)

    - Set the type name of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **typeName** – **[in]** The type name to set for the OpConfig.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *typeName* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getTypeName([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, const char \*\*typeName)

    - Get the type name of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **typeName** – **[out]** The retrieved type name.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *typeName* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_setParams([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, [QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) \*paramHandle, const uint32\_t numParams)

    - Set the parameters of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **paramHandle** – **[in]** Array of parameter handles to set.
- **numParams** – **[in]** Number of parameters in the array.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *paramHandle* is NULL when *numParams* &gt; 0
- QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC: Memory allocation error while setting parameters

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getParamAt([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, uint32\_t index, [QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) \*paramHandle)

    - Get the parameter of an OpConfig at a specific index.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **index** – **[in]** The index of the parameter to be retrieved
- **paramHandle** – **[out]** The parameter handle.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *paramHandle* is NULL or *index* is invalid

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getNumParams([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, uint32\_t \*numParams)

    - Get the number of parameters in an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **numParams** – **[out]** The number of parameters.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *numParams* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_setInputTensors([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t) \*tensorHandles, const uint32\_t numTensors)

    - Set the input tensors of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **tensorHandlesHandle** – **[in]** Array of input tensor handles to set.
- **numTensors** – **[in]** Number of input tensors in the array.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *tensorHandlesHandle* is NULL when *numTensors* &gt; 0
- QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC: Memory allocation error while setting input tensors

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getInputTensorAt([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, uint32\_t index, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t) \*tensorHandle)

    - Get the input tensor of an OpConfig at a specific index.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **index** – **[in]** The index of the tensor to be retrieved
- **tensorHandle** – **[out]** The input tensor handle.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *tensorHandle* is NULL or *index* is invalid

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getNumInputTensors([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, uint32\_t \*numTensors)

    - Get the number of input tensors in an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **numTensors** – **[out]** The number of input tensors.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *numTensors* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_setOutputTensors([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t) \*tensorHandles, const uint32\_t numTensors)

    - Set the output tensors of an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **tensorHandlesHandle** – **[in]** Array of output tensor handles to set.
- **numTensors** – **[in]** Number of output tensors in the array.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *tensorHandles* is NULL when *numTensors* &gt; 0
- QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC: Memory allocation error while setting output tensors

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getNumOutputTensors([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, uint32\_t \*numTensors)

    - Get the number of output tensors in an OpConfig.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **numTensors** – **[out]** The number of output tensors.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *numTensors* is NULL

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_getOutputTensorAt([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t) opConfigHandle, uint32\_t index, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t) \*tensorHandle)

    - Get the output tensor of an OpConfig at a specific index.

- Parameters

    - - **opConfigHandle** – **[in]** A handle to the OpConfig.
- **index** – **[in]** The index of the tensor to be retrieved
- **tensorHandle** – **[out]** The output tensor handles.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *opConfigHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *tensorHandles* is NULL or *index* is invalid

Note

Use corresponding API through [QairtOpConfig\_V1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__V1__t).

Enums

- enum QairtOpConfig\_Error\_t

    - QAIRT OpConfig API result / error codes.

*Values:*

- enumerator QAIRT\_OPCONFIG\_MIN\_ERROR = QAIRT\_MIN\_ERROR\_OP\_PACKAGE

    - 

- enumerator QAIRT\_OPCONFIG\_NO\_ERROR = QAIRT\_SUCCESS

    - Qairt OpConfig success.

- enumerator QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC = [QAIRT\_COMMON\_ERROR\_MEM\_ALLOC](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv4N19QairtCommon_Error_t28QAIRT_COMMON_ERROR_MEM_ALLOCE)

    - General error relating to memory allocation in OpConfig API.

- enumerator QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT = 3004

    - Invalid function argument.

- enumerator QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE = 3005

    - Invalid OpConfig handle.

- enumerator QAIRT\_OPCONFIG\_MAX\_ERROR = QAIRT\_MAX\_ERROR\_OP\_PACKAGE

    - 

- enumerator QAIRT\_OPCONFIG\_ERROR\_UNDEFINED = 0x7FFFFFFF

    -

Typedefs

- typedef struct \_QairtOpConfig\_Handle\_t \*QairtOpConfig\_Handle\_t

    - OpConfig handle used to interface with OpConfig APIs.

The handle itself is created and freed by the client.
    Copy to clipboard

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_CreateFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t)\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_FreeFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t))

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_SetNameFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), const char\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetNameFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), const char\*\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_SetPackageNameFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), const char\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetPackageNameFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), const char\*\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_SetTypeNameFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), const char\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetTypeNameFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), const char\*\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_SetParamsFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), [QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t)\*, const uint32\_t)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetParamAtFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), uint32\_t, [QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t)\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetNumParamsFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), uint32\_t\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_SetInputTensorsFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t)\*, const uint32\_t)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetInputTensorAtFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), uint32\_t, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t)\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetNumInputTensorsFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), uint32\_t\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_SetOutputTensorsFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t)\*, const uint32\_t)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetNumOutputTensorsFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), uint32\_t\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_GetOutputTensorAtFn\_t)([QairtOpConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv422QairtOpConfig_Handle_t), uint32\_t, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t)\*)

    -

Defines

- QAIRT\_OPCONFIG\_V1\_ID QAIRT\_MIN\_ID\_OP\_PACKAGE

    - 

- QAIRT\_SCALAR\_V1\_ID QAIRT\_MIN\_ID\_OP\_PACKAGE + 1

    - 

- QAIRT\_PARAM\_V1\_ID QAIRT\_MIN\_ID\_OP\_PACKAGE + 2

    -

* * *

Op parameter types.

**Include:** `#include "QairtOpConfig/QairtParam.h"`

- struct QairtOpConfig\_ParamV1\_t

    - *#include &lt;QairtParam.h&gt;*

Public Members

- uint64\_t size

    - 

- [Qairt\_GetInterfaceFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv422Qairt_GetInterfaceFn_t) getInterface

    - 

- [QairtOpConfig\_Param\_CreateFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv430QairtOpConfig_Param_CreateFn_t) create

    - 

- [QairtOpConfig\_Param\_FreeFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv428QairtOpConfig_Param_FreeFn_t) free

    - 

- [QairtOpConfig\_Param\_GetParamTypeFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv436QairtOpConfig_Param_GetParamTypeFn_t) getParamType

    - 

- [QairtOpConfig\_Param\_GetNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv431QairtOpConfig_Param_GetNameFn_t) getName

    - 

- [QairtOpConfig\_Param\_GetScalarParamFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv438QairtOpConfig_Param_GetScalarParamFn_t) getScalarParam

    - 

- [QairtOpConfig\_Param\_GetTensorParamFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv438QairtOpConfig_Param_GetTensorParamFn_t) getTensorParam

    - 

- [QairtOpConfig\_Param\_SetNameFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv431QairtOpConfig_Param_SetNameFn_t) setName

    - 

- [QairtOpConfig\_Param\_SetScalarParamFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv438QairtOpConfig_Param_SetScalarParamFn_t) setScalarParam

    - 

- [QairtOpConfig\_Param\_SetTensorParamFn\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv438QairtOpConfig_Param_SetTensorParamFn_t) setTensorParam

    -

Functions

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_create([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) \*paramHandle)

    - Create a parameter handle.

- Parameters

    - **paramHandle** – **[out]** A handle to the created parameter.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *paramHandle* is NULL
- QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC: Memory allocation error while creating parameter

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_free([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle)

    - Free a parameter handle.

- Parameters

    - **paramHandle** – **[in]** A handle to the parameter to be freed.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_MEM\_ALLOC: Memory deallocation error

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_getParamType([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle, [Qairt\_ParamType\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv417Qairt_ParamType_t) \*paramType)

    - Get the parameter type of a parameter.

- Parameters

    - - **paramHandle** – **[in]** A handle to the parameter.
- **paramType** – **[out]** The parameter type (scalar or tensor).

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *paramType* is NULL

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_getName([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle, const char \*\*name)

    - Get the name of a parameter.

- Parameters

    - - **paramHandle** – **[in]** A handle to the parameter.
- **name** – **[out]** The retrieved parameter name.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *name* is NULL

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_getScalarParam([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle, [QairtScalar\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv420QairtScalar_Handle_t) \*scalarHandle)

    - Get the scalar parameter from a parameter handle.

- Parameters

    - - **paramHandle** – **[in]** A handle to the parameter.
- **scalarHandle** – **[out]** The retrieved scalar handle.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *scalarHandle* is NULL or parameter is not scalar type

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_getTensorParam([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t) \*tensorHandle)

    - Get the tensor parameter from a parameter handle.

- Parameters

    - - **paramHandle** – **[in]** A handle to the parameter.
- **tensorHandle** – **[out]** The retrieved tensor handle.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *tensorHandle* is NULL or parameter is not tensor type

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_setName([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle, const char \*name)

    - Set the name of a parameter.

- Parameters

    - - **paramHandle** – **[in]** A handle to the parameter.
- **name** – **[in]** The name to set for the parameter.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* is not a valid handle
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_ARGUMENT: *name* is NULL

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_setScalarParam([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle, [QairtScalar\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv420QairtScalar_Handle_t) scalarHandle)

    - Set a scalar parameter.

- Parameters

    - - **paramHandle** – **[in]** A handle to the parameter.
- **scalarHandle** – **[in]** The scalar handle to set.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* or *scalarHandle* is not a valid handle

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

- [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) QairtOpConfig\_Param\_setTensorParam([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t) paramHandle, [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t) tensorHandle)

    - Set a tensor parameter.

- Parameters

    - - **paramHandle** – **[in]** A handle to the parameter.
- **tensorHandle** – **[in]** The tensor handle to set.

- Returns

    - Error code:

- QAIRT\_SUCCESS: No error encountered
- QAIRT\_OPCONFIG\_ERROR\_INVALID\_HANDLE: *paramHandle* or *tensorHandle* is not a valid handle

Note

Use corresponding API through [QairtOpConfig\_ParamV1\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#structQairtOpConfig__ParamV1__t).

Enums

- enum Qairt\_ParamType\_t

    - An enum to specify the parameter type : Scalar or Tensor.

*Values:*

- enumerator QAIRT\_PARAMTYPE\_SCALAR = 0

    - 

- enumerator QAIRT\_PARAMTYPE\_TENSOR = 1

    - 

- enumerator QAIRT\_PARAMTYPE\_UNDEFINED = 0xFFFFFFFF

    -

Typedefs

- typedef struct \_QairtParam\_Handle\_t \*QairtParam\_Handle\_t

    - Param handle used to interface with Param APIs.

The handle itself is created and freed by the client.
    Copy to clipboard

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_CreateFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t)\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_FreeFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t))

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_GetParamTypeFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t), [Qairt\_ParamType\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv417Qairt_ParamType_t)\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_GetNameFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t), const char\*\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_GetScalarParamFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t), [QairtScalar\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv420QairtScalar_Handle_t)\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_GetTensorParamFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t), [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t)\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_SetNameFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t), const char\*)

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_SetScalarParamFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t), [QairtScalar\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv420QairtScalar_Handle_t))

    - 

- typedef [Qairt\_Status\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtCommon.html#_CPPv414Qairt_Status_t) (\*QairtOpConfig\_Param\_SetTensorParamFn\_t)([QairtParam\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtOpConfig.html#_CPPv419QairtParam_Handle_t), [QairtTensor\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/QairtTensor.html#_CPPv420QairtTensor_Handle_t))

    -

Last Published: Jun 04, 2026

[Previous Topic
QairtSignal](https://docs.qualcomm.com/bundle/publicresource/80-63442-10/topics/QairtSignal.md) [Next Topic
QairtQuantizeParams](https://docs.qualcomm.com/bundle/publicresource/80-63442-10/topics/QairtQuantizeParams.md)