Updated on 2022-03-13 GMT+08:00

API Usage Example

/***************************************************************************************
 *                      Copyright (C) HiSilicon Co., Ltd.
 *
 *       Filename:  user_def_errorcode.h
 *    Description:  User defined Error Code
 *
 *        Version:  1.0
 *        Created:  2018-01-08 10:15:18
 *         Author:  
 *
 *       Revision:  initial draft;
 **************************************************************************************/
#ifndef USE_DEF_ERROR_CODE_H_
#define USE_DEF_ERROR_CODE_H_

#include "hiaiengine/status.h"
#define USE_DEFINE_ERROR 0x6001   // ID of the custom module. The value 0x6001 is for reference only. You can set the value as required. The value cannot be the same as MODID_GRAPH in the status.h file.
enum 
{
HIAI_INVALID_INPUT_MSG_CODE = 0   // error code name. The value 0 is for reference only. You can set the value as required.
};
HIAI_DEF_ERROR_CODE(USE_DEFINE_ERROR, HIAI_ERROR, HIAI_INVALID_INPUT_MSG, "invalid input message pointer");
#endif