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
30
extern
"C"
{
31
#endif
32
33
/* ==================== [Defines] =========================================== */
34
41
typedef
enum
{
42
XF_FAIL
= -1,
43
XF_OK
= 0,
45
XF_ERR_NO_MEM
= 0x100,
46
XF_ERR_INVALID_ARG
,
47
XF_ERR_INVALID_STATE
,
48
XF_ERR_INVALID_CHECK
,
49
XF_ERR_INVALID_PORT
,
50
XF_ERR_NOT_FOUND
,
51
XF_ERR_NOT_SUPPORTED
,
52
XF_ERR_BUSY
,
53
XF_ERR_TIMEOUT
,
54
XF_ERR_UNINIT
,
55
XF_ERR_INITED
,
57
XF_ERR_RESOURCE
,
58
XF_ERR_ISR
,
60
XF_ERR_MAX
,
61
}
xf_err_code_t
;
62
63
/* ==================== [Typedefs] ========================================== */
64
69
typedef
int32_t
xf_err_t
;
70
71
/* ==================== [Global Prototypes] ================================= */
72
79
const
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__ */
xf_err_t
int32_t xf_err_t
整形错误类型。 错误码具体值见 xf_err_code_t.
Definition
xf_err.h:69
xf_err_to_name
const char * xf_err_to_name(xf_err_t code)
返回 xf_err_code_t 错误代码对应的错误信息字符串。
Definition
xf_err_to_name.c:81
xf_err_code_t
xf_err_code_t
错误类型定义。
Definition
xf_err.h:41
XF_ERR_INVALID_PORT
@ XF_ERR_INVALID_PORT
Definition
xf_err.h:49
XF_FAIL
@ XF_FAIL
Definition
xf_err.h:42
XF_ERR_INVALID_ARG
@ XF_ERR_INVALID_ARG
Definition
xf_err.h:46
XF_ERR_MAX
@ XF_ERR_MAX
Definition
xf_err.h:60
XF_ERR_NOT_SUPPORTED
@ XF_ERR_NOT_SUPPORTED
Definition
xf_err.h:51
XF_ERR_INITED
@ XF_ERR_INITED
Definition
xf_err.h:55
XF_OK
@ XF_OK
Definition
xf_err.h:43
XF_ERR_BUSY
@ XF_ERR_BUSY
Definition
xf_err.h:52
XF_ERR_RESOURCE
@ XF_ERR_RESOURCE
Definition
xf_err.h:57
XF_ERR_TIMEOUT
@ XF_ERR_TIMEOUT
Definition
xf_err.h:53
XF_ERR_INVALID_CHECK
@ XF_ERR_INVALID_CHECK
Definition
xf_err.h:48
XF_ERR_ISR
@ XF_ERR_ISR
Definition
xf_err.h:58
XF_ERR_INVALID_STATE
@ XF_ERR_INVALID_STATE
Definition
xf_err.h:47
XF_ERR_NOT_FOUND
@ XF_ERR_NOT_FOUND
Definition
xf_err.h:50
XF_ERR_UNINIT
@ XF_ERR_UNINIT
Definition
xf_err.h:54
XF_ERR_NO_MEM
@ XF_ERR_NO_MEM
Definition
xf_err.h:45
xf_common_config.h
预定义. xf_attr.h 等头文件通过包含本文件减少对其余外部文件的直接依赖. 如: xfconfig.h.
components
xf_utils
xf_utils
src
xf_common
xf_err.h
生成于 2025年 一月 21日 星期二 17:25:09 , 为 XFusion API使用
1.9.8