XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_netif_types.h
浏览该文件的文档.
1
12#ifndef __XF_NETIF_TYPES_H__
13#define __XF_NETIF_TYPES_H__
14
15/* ==================== [Includes] ========================================== */
16
17#include "xf_utils.h"
18
19#include "xf_mac.h"
21
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/* ==================== [Defines] =========================================== */
34
35#define XF_NETIF_TODO 0
36
37/* ==================== [Typedefs] ========================================== */
38
39#if XF_NETIF_TODO
45typedef enum _xf_netif_type_code_t {
46 XF_NETIF_TYPE_BASE = 0,
47
48 XF_NETIF_TYPE_STA = XF_NETIF_TYPE_BASE,
49 XF_NETIF_TYPE_AP,
50 XF_NETIF_TYPE_ETH,
51
52 XF_NETIF_TYPE_CUSTOM0,
53 XF_NETIF_TYPE_CUSTOM1,
54 XF_NETIF_TYPE_CUSTOM2,
55 XF_NETIF_TYPE_CUSTOM3,
56
57 XF_NETIF_TYPE_MAX,
58} xf_netif_type_code_t;
59#endif /* XF_NETIF_TODO */
60
64typedef void *xf_netif_t;
65
74
81
89
102
106typedef int32_t xf_ip_event_id_t;
107
115
124
132typedef void (*xf_ip_cb_t)(
133 xf_ip_event_id_t event_id, void *event_data, void *user_args);
134
135/* ==================== [Global Prototypes] ================================= */
136
137/* ==================== [Macros] ============================================ */
138
139#ifdef __cplusplus
140} /* extern "C" */
141#endif
142
148#endif /* __XF_NETIF_TYPES_H__ */
struct _xf_netif_pair_mac_ip_t xf_netif_pair_mac_ip_t
DHCP 客户端的地址信息(MAC 和 IP 地址对)。
int32_t xf_ip_event_id_t
ip 事件 id。见 xf_ip_event_code_t.
struct _xf_ip_event_got_ip_t xf_ip_event_got_ip_t
XF_IP_EVENT_STA_GOT_IP 事件的事件结构。
enum _xf_ip_event_code_t xf_ip_event_code_t
IP 事件声明。
void(* xf_ip_cb_t)(xf_ip_event_id_t event_id, void *event_data, void *user_args)
ip 回调函数原型。
_xf_ip_event_code_t
IP 事件声明。
void * xf_netif_t
xfusion netif 句柄。
struct _xf_netif_dns_info_t xf_netif_dns_info_t
DNS 服务器信息。
enum _xf_netif_dns_type_t xf_netif_dns_type_t
DNS 服务器类型。
struct _xf_ip_event_ip_assigned_t xf_ip_event_ip_assigned_t
XF_IP_EVENT_AP_STAIPASSIGNED 事件的事件结构。
_xf_netif_dns_type_t
DNS 服务器类型。
#define XF_MAC_LEN_MAX
mac 地址最大长度。
Definition xf_mac.h:35
@ XF_IP_EVENT_GOT_IP6
@ XF_IP_EVENT_IP_ASSIGNED
@ XF_IP_EVENT_LOST_IP
@ XF_IP_EVENT_BASE
@ XF_IP_EVENT_MAX
@ XF_IP_EVENT_GOT_IP
@ XF_NETIF_DNS_MAIN
@ XF_NETIF_DNS_BACKUP
@ XF_NETIF_DNS_MAX
XF_IP_EVENT_STA_GOT_IP 事件的事件结构。
xf_netif_ip_info_t ip_info
XF_IP_EVENT_AP_STAIPASSIGNED 事件的事件结构。
uint8_t mac[XF_MAC_LEN_MAX]
DNS 服务器信息。
DHCP 客户端的地址信息(MAC 和 IP 地址对)。
uint8_t mac[XF_MAC_LEN_MAX]