Embedded TCP/IP stack  3.9.3

Detailed Description

This section describes parameters that are specific for the Ethernet module.
The user may override and change the default values in the application-specific configuration file fnet_user_config.h.

Macros

#define FNET_CFG_CPU_ETH0
 Ethernet-0 interface: More...
 
#define FNET_CFG_CPU_ETH1
 Ethernet-1 interface: More...
 
#define FNET_CFG_CPU_ETH0_NAME   "eth0"
 Defines name for the Ethernet-0 interface.

. More...

 
#define FNET_CFG_CPU_ETH1_NAME   "eth1"
 Defines name for the Ethernet-0 interface.

. More...

 
#define FNET_CFG_CPU_ETH0_PHY_ADDR
 Default PHY address used by the Ethernet-0 module.
Specifies one of up to 32 attached PHY devices. More...
 
#define FNET_CFG_CPU_ETH1_PHY_ADDR   (1U)
 Default PHY address used by the Ethernet-1 module.
Specifies one of up to 32 attached PHY devices. More...
 
#define FNET_CFG_CPU_ETH_PHY_ADDR_DISCOVER
 PHY address discover: More...
 
#define FNET_CFG_CPU_ETH0_MTU
 Defines the Maximum Transmission Unit for the Ethernet-0 interface. The largest value is 1500. The Internet Minimum MTU is 576.

. More...

 
#define FNET_CFG_CPU_ETH1_MTU
 Defines the Maximum Transmission Unit for the Ethernet-1 interface. The largest value is 1500. The Internet Minimum MTU is 576.

. More...

 
#define FNET_CFG_CPU_ETH0_VECTOR_NUMBER
 Vector number of the Ethernet Receive Frame interrupt.

NOTE: User application should not change this parameter. More...
 
#define FNET_CFG_CPU_ETH1_VECTOR_NUMBER
 Vector number of the Ethernet Receive Frame interrupt.

NOTE: User application should not change this parameter. More...
 
#define FNET_CFG_CPU_ETH_VECTOR_PRIORITY   (2u)
 Default Interrupt priority level for the Ethernet module. It can range from 1 to FNET_CFG_CPU_VECTOR_PRIORITY_MAX. The higher the value, the greater the priority of the corresponding interrupt.

NOTE: It's ignored for MCF V1.

. More...

 
#define FNET_CFG_CPU_ETH_TX_BUFS_MAX
 Defines the maximum number of outgoing frames that may be buffered by the Ethernet module. As a result ((FNET_CFG_CPU_ETHx_MTU+18) * FNET_CFG_CPU_ETH_TX_BUFS_MAX) bytes will be allocated.

. More...

 
#define FNET_CFG_CPU_ETH_RX_BUFS_MAX
 Defines the maximum number of incoming frames that may be buffered by the Ethernet module. As a result ((FNET_CFG_CPU_ETHx_MTU+18) * FNET_CFG_CPU_ETH_RX_BUFS_MAX) bytes will be allocated. More...
 
#define FNET_CFG_CPU_ETH_ATONEGOTIATION_TIMEOUT
 Defines Ethernet Autonegotiation Timeout (in ms), which is performed during the Ethernet interface initilisation.
Autonegotiation is an Ethernet procedure by which two connected devices choose common transmission parameters, such as speed, duplex mode, and flow control. In this process, the connected devices first share their capabilities regarding these parameters and then choose the highest performance transmission mode they both support. On practice, it usually takes less than 700ms.

Set it to 0 to disable the waiting. More...
 
#define FNET_CFG_CPU_ETH_PROMISCUOUS
 The Ethernet interface promiscuous mode: More...
 
#define FNET_CFG_CPU_ETH_FULL_DUPLEX
 The Ethernet interface full duplex mode: More...
 
#define FNET_CFG_CPU_ETH_RMII
 The Reduced Media Independent Interface (RMII) mode for MAC: More...
 
#define FNET_CFG_CPU_ETH_RMII_10T
 10-Mbps mode of the RMII: More...
 
#define FNET_CFG_CPU_ETH_MIB
 Ethernet Management Information Base (MIB) Block Counters: More...
 
#define FNET_CFG_CPU_ETH_HW_TX_PROTOCOL_CHECKSUM
 Insertion of protocol checksum by Ethernet-module: More...
 
#define FNET_CFG_CPU_ETH_HW_TX_IP_CHECKSUM
 Insertion of IPv4 header checksum by Ethernet-module: More...
 
#define FNET_CFG_CPU_ETH_HW_RX_PROTOCOL_CHECKSUM
 Discard of frames with wrong protocol checksum by Ethernet-module: More...
 
#define FNET_CFG_CPU_ETH_HW_RX_IP_CHECKSUM
 Discard of frames with wrong IPv4 header checksum by Ethernet-module: More...
 
#define FNET_CFG_CPU_ETH_HW_RX_MAC_ERR
 Discard of frames with MAC layer errors by Ethernet-module: More...
 
#define FNET_CFG_CPU_ETH_OVERLOAD_IO_INIT   (0)
 Your own alternate implementation for fnet_eth_io_init(): More...
 

© 2005-2017 by Andrey Butok. http://fnet.sourceforge.net