WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
Error handling
Error handling 的协作图:

类型定义

typedef void(* LOS_ERRORHANDLE_FUNC) (CHAR *fileName, UINT32 lineNo, UINT32 errorNo, UINT32 paraLen, void *para)
 Define the pointer to the error handling function.
 

函数

UINT32 LOS_ErrHandle (CHAR *fileName, UINT32 lineNo, UINT32 errorNo, UINT32 paraLen, void *para)
 Error handling function.
 
void LOS_RegErrHandle (LOS_ERRORHANDLE_FUNC func)
 User registration error handling hook function.
 

详细描述

类型定义说明

◆ LOS_ERRORHANDLE_FUNC

typedef void(* LOS_ERRORHANDLE_FUNC) (CHAR *fileName, UINT32 lineNo, UINT32 errorNo, UINT32 paraLen, void *para)

Define the pointer to the error handling function.

Description:
This API is used to define the pointer to the error handling function.
注意
None.
参数
fileName[IN] Log file that stores error information.
lineNo[IN] Line number of the erroneous line.
errorNo[IN] Error code.
paraLen[IN] Length of the input parameter pPara.
para[IN] User label of the error.
返回值
None.
Dependency:
  • los_err.h: the header file that contains the API declaration.
自从
Huawei LiteOS V100R001C00

函数说明

◆ LOS_ErrHandle()

UINT32 LOS_ErrHandle ( CHAR fileName,
UINT32  lineNo,
UINT32  errorNo,
UINT32  paraLen,
void *  para 
)
extern

Error handling function.

Description:
This API is used to perform different operations according to error types.
注意
None
参数
fileName[IN] Log file that stores error information.
lineNo[IN] Line number of the erroneous line which should not be OS_ERR_MAGIC_WORD.
errorNo[IN] Error code.
paraLen[IN] Length of the input parameter pPara.
para[IN] User label of the error.
返回值
LOS_OKThe error is successfully processed.
Dependency:
  • los_err.h: the header file that contains the API declaration.
自从
Huawei LiteOS V100R001C00

◆ LOS_RegErrHandle()

void LOS_RegErrHandle ( LOS_ERRORHANDLE_FUNC  func)
extern

User registration error handling hook function.

Description:
This API is used to register user error handling hook function, Support repeated registration.
注意
None
参数
func[IN] error handling hook function.
返回值
None.
Dependency:
  • los_err.h: the header file that contains the API declaration.
自从
Huawei LiteOS V100R001C00