XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_mac.h
浏览该文件的文档.
1
12#ifndef __XF_MAC_H__
13#define __XF_MAC_H__
14
15/* ==================== [Includes] ========================================== */
16
17#include "xf_utils.h"
18
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30/* ==================== [Defines] =========================================== */
31
35#define XF_MAC_LEN_MAX (6)
36
37/* ==================== [Typedefs] ========================================== */
38
39/* ==================== [Global Prototypes] ================================= */
40
41/* ==================== [Macros] ============================================ */
42
43#ifndef XF_MAC2STR
44# define XF_MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
45#endif
46#ifndef XF_MACSTR
47# define XF_MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
48#endif
49
50#ifdef __cplusplus
51} /* extern "C" */
52#endif
53
59#endif /* __XF_MAC_H__ */