File QnnDspError.h

Parent directory (include/QNN/DSP)

Definition (include/QNN/DSP/QnnDspError.h)

Includes

Full File Listing

Defines

QNN_DSP_ERROR_MAX_STRING_LEN 256
QNN_DSP_ERROR_MAX_CONTEXT_STORAGE 2

Maximum Storage allowed per context by DSP backend for saving errors.

Note

The storage limit passed in QnnBackend_Config_t during QnnBackend_initialize and in QnnContext_Config_t during QnnContext_create should be less than or equal to this allowed storage

QNN_DSP_ERROR_VERBOSE_INIT

{                                \

{ 0 } /*errorString*/          \

}


QnnDspError_Verbose_t initializer macro.

QNN_DSP_ERROR_INFO_INIT   {                                              \     QNN_DSP_ERROR_TYPE_MAX

, /*errorType*/        \

{                                            \

QNN_DSP_ERROR_VERBOSE_INIT

/*verboseInfo*/ \

}                                            \

}


QnnDspError_Info_t initializer macro.

Enums

enum QnnDspError_Error_t

Values:

enumerator QNN_DSP_ERROR_MIN_ERROR = 10000
enumerator QNN_DSP_ERROR_NO_ERROR = 0

Qnn Error success.

enumerator QNN_DSP_ERROR_NOT_INITIALIZED = 10000 + 0

Error manager not initialized.

enumerator QNN_DSP_ERROR_INVALID_CONFIG = 10000 + 1

Invalid error manager config.

enumerator QNN_DSP_ERROR_INVALID_REPORTING_LEVEL = 10000 + 2

Invalid reporting level in error manager config.

enumerator QNN_DSP_ERROR_INVALID_ERRORHANDLE = 10000 + 3

Error handle not recognized.

enumerator QNN_DSP_ERROR_INVALID_STORAGE_LIMIT = 10000 + 4

Invalid storage limit in error manger config.

enumerator QNN_DSP_ERROR_INVALID_CONTEXTHANDLE = 10000 + 5

Invalid context identifier in error handle.

enumerator QNN_DSP_ERROR_MISSING_ERRORINFO = 10000 + 6

Error info not found.

enumerator QNN_DSP_ERROR_INVALID_ARGUMENT = 10000 + 7

Invalid function argument.

enumerator QNN_DSP_ERROR_OUT_OF_MEMORY = 10000 + 8

No space to accept new errors.

enumerator QNN_DSP_ERROR_MAX_NUM_CONTEXTS = 10000 + 9

Error manager already contains maximum number of contexts.

enumerator QNN_DSP_ERROR_UNKNOWN_ERROR = 10000 + 10

Unknown error.

enumerator QNN_DSP_ERROR_MAX_ERROR = 10999
enumerator QNN_DSP_ERROR_UNDEFINED = 0x7FFFFFFF
enum QnnDspError_Type_t

Values:

enumerator QNN_DSP_ERROR_TYPE_VERBOSE
enumerator QNN_DSP_ERROR_TYPE_MAX = 0x7FFFFFFF
struct QnnDspError_StaticInfo_t
#include <QnnDspError.h>

Struct which defines static error info.

Public Members

uint16_t errorCode

16-bit Error code extracted from error handle

struct QnnDspError_Blob_t
#include <QnnDspError.h>

Struct which defines detailed error info.

Public Members

QnnDspError_StaticInfo_t staticInfo
uint32_t errorBufSize
void *errorBuffer
struct QnnDspError_Verbose_t
#include <QnnDspError.h>

This struct is used to provide verbose error string.

Note

  • This struct is added to QnnDspError_Info_t from which the errorString can be accessed by the user for errorType - QNN_DSP_ERROR_TYPE_VERBOSE

  • This is a C string - It is null terminated

Public Members

char errorString[256]
struct QnnDspError_Info_t
#include <QnnDspError.h>

This is the error info struct provided as errorBuffer in QnnDspError_Blob_t.

The errorInfo can be obtained by casting errorBuffer field of QnnDspError_Blob_t to QnnDspError_Info_t. Based on the errorType, the type of error info structure can be found Below is the Map between QnnDspError_Type_t and type of Error Info Struct

#

errorType

errorInfo struct type

1

QNN_DSP_ERROR_TYPE_VERBOSE

QnnDspError_Verbose_t

Public Members

QnnDspError_Type_t errorType
QnnDspError_Verbose_t verboseInfo
union QnnDspError_Info_t::[anonymous] [anonymous]