net_nic_def.h

来自「DM9000A的网卡驱动」· C头文件 代码 · 共 53 行

H
53
字号
/*
*********************************************************************************************************
*                                               uC/TCP-IP
*                                       The Embedded TCP/IP Stack
*
*                          (c) Copyright 2003-2005; Micrium, Inc.; Weston, FL
*
*                   All rights reserved.  Protected by international copyright laws.
*                   Knowledge of the source code may not be used to write a similar
*                   product.  This file may only be used in accordance with a license
*                   and should not be redistributed in any way.
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                        NETWORK INTERFACE CARD
*                                            Davicom DM9000
*
* Filename      : net_nic_def.h
* Version       : V1.00
* Programmer(s) : EHS
*********************************************************************************************************
*/

#ifndef  __NET_NIC_DEF_H__
#define  __NET_NIC_DEF_H__

/*
*********************************************************************************************************
*                                        DEFINITIONS
*
* Note(s) : (1) These global #define's are required PRIOR to network configuration.
*********************************************************************************************************
*/

#define  EMAC_CFG_MAC_ADDR_SEL_NONE                 0       /* Do not explicity select a MAC address src   */
#define  EMAC_CFG_MAC_ADDR_SEL_EEPROM               1       /* EMAC MAC addr cfg'd from NIC's ext EEPROM.  */
#define  EMAC_CFG_MAC_ADDR_SEL_CFG                  2       /* EMAC MAC addr cfg'd by prod app @ init.     */

#define  EMAC_SPD_0                                 0       /* Link speed unknown, or link down            */
#define  EMAC_SPD_10                               10       /* Link speed = 10mbps                         */
#define  EMAC_SPD_100                             100       /* Link speed = 100mbps                        */

#define  EMAC_DUPLEX_UNKNOWN                        0       /* Duplex uknown or auto-neg incomplete        */
#define  EMAC_DUPLEX_HALF                           1       /* Duplex = Half Duplex                        */
#define  EMAC_DUPLEX_FULL                           2       /* Duplex = Full Duplex                        */




#endif

⌨️ 快捷键说明

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