XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_err.h
浏览该文件的文档.
1
12#ifndef __XF_ERR_H__
13#define __XF_ERR_H__
14
15/* ==================== [Includes] ========================================== */
16
17#include "xf_common_config.h"
18#include "../xf_std/xf_stdint.h"
19
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/* ==================== [Defines] =========================================== */
34
62
63/* ==================== [Typedefs] ========================================== */
64
69typedef int32_t xf_err_t;
70
71/* ==================== [Global Prototypes] ================================= */
72
79const char *xf_err_to_name(xf_err_t code);
80
81/* ==================== [Macros] ============================================ */
82
83#ifdef __cplusplus
84} /*extern "C"*/
85#endif
86
92#endif /* __XF_ERR_H__ */
int32_t xf_err_t
整形错误类型。 错误码具体值见 xf_err_code_t.
Definition xf_err.h:69
const char * xf_err_to_name(xf_err_t code)
返回 xf_err_code_t 错误代码对应的错误信息字符串。
xf_err_code_t
错误类型定义。
Definition xf_err.h:41
@ XF_ERR_INVALID_PORT
Definition xf_err.h:49
@ XF_FAIL
Definition xf_err.h:42
@ XF_ERR_INVALID_ARG
Definition xf_err.h:46
@ XF_ERR_MAX
Definition xf_err.h:60
@ XF_ERR_NOT_SUPPORTED
Definition xf_err.h:51
@ XF_ERR_INITED
Definition xf_err.h:55
@ XF_OK
Definition xf_err.h:43
@ XF_ERR_BUSY
Definition xf_err.h:52
@ XF_ERR_RESOURCE
Definition xf_err.h:57
@ XF_ERR_TIMEOUT
Definition xf_err.h:53
@ XF_ERR_INVALID_CHECK
Definition xf_err.h:48
@ XF_ERR_ISR
Definition xf_err.h:58
@ XF_ERR_INVALID_STATE
Definition xf_err.h:47
@ XF_ERR_NOT_FOUND
Definition xf_err.h:50
@ XF_ERR_UNINIT
Definition xf_err.h:54
@ XF_ERR_NO_MEM
Definition xf_err.h:45
预定义. xf_attr.h 等头文件通过包含本文件减少对其余外部文件的直接依赖. 如: xfconfig.h.