Function QnnSignal_create¶
Defined in File QnnSignal.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnSignal_create(Qnn_BackendHandle_t backend, const QnnSignal_Config_t **config, Qnn_SignalHandle_t *signal)¶
Create a new signal object. The object will be configured with desired behavior and is idle and available for usage.
- Parameters
backend – [in] A backend handle
config – [in] Pointer to a NULL terminated array of config option pointers. NULL is allowed, indicates no config options are provided, and signal will not be configured to do anything. All config options have default value, in case not provided. If same config option type is provided multiple times, the last option value will be used.
signal – [out] Handle to newly created signal object.
- Returns
Error code:
QNN_SUCCESS: if the signal is created successfully
QNN_SIGNAL_ERROR_INVALID_ARGUMENT: at least one argument or config option invalid
QNN_SIGNAL_ERROR_INVALID_HANDLE: backend is not a valid handle
QNN_SIGNAL_ERROR_UNSUPPORTED: if QnnSignal API is not supported on the backend
QNN_COMMON_ERROR_SYSTEM_COMMUNICATION: SSR occurence (successful recovery)
QNN_COMMON_ERROR_SYSTEM_COMMUNICATION_FATAL: SSR occurence (unsuccessful recovery)