ethernetif.h

来自「不带操作系统的LWIP栈」· C头文件 代码 · 共 51 行

H
51
字号
/*
******************************************************************************
 *     Copyright (c) 2000	ASIX Electronic Corporation      All rights reserved.
 *
 *     This is unpublished proprietary source code of ASIX Electronic Corporation
 *
 *     The copyright notice above does not evidence any actual or intended
 *     publication of such source code.
 ******************************************************************************
 */
/*=============================================================================
 * Module Name: ethernetif.h
 * Purpose:
 * Author:
 * Date:
 * Notes:
 * $Log: ethernetif.h,v $
 * Revision 1.1.1.1  2005/11/10 03:00:29  arthur
 * no message
 *
 * Revision 1.1  2005/08/17 11:12:52  borbin
 * no message
 *
 *
*=============================================================================
*/

#ifndef __NETIF_ETHERNETIF_H__
#define __NETIF_ETHERNETIF_H__
#include "lwip\sys.h"

struct ethernetif {
  struct eth_addr	*ethaddr;

  /* Add whatever per-interface state that is needed here. */
  struct netif		*netif;
  sys_sem_t			sem;
};


#define INT_TO_IPADDR(a,b,c,d) (((u32_t)(a & 0xff) << 24) | \
								((u32_t)(b & 0xff) << 16) | \
                                ((u32_t)(c & 0xff) << 8)  | \
								((u32_t)(d & 0xff)))

extern struct ethernetif stoeif;

err_t ethernetif_init(struct netif *netif);
u8_t  ethernetif_input(struct netif *netif) ;

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?