RTEMS 6.1-rc1
Data Fields
_enet_config Struct Reference

Defines the basic configuration structure for the ENET device. More...

#include <fsl_enet.h>

Data Fields

uint32_t macSpecialConfig
 
uint32_t interrupt
 
uint16_t rxMaxFrameLen
 
enet_mii_mode_t miiMode
 
enet_mii_speed_t miiSpeed
 
enet_mii_duplex_t miiDuplex
 
uint8_t rxAccelerConfig
 
uint8_t txAccelerConfig
 
uint16_t pauseDuration
 
uint8_t rxFifoEmptyThreshold
 
uint8_t rxFifoFullThreshold
 
uint8_t txFifoWatermark
 
uint8_t ringNum
 
enet_rx_alloc_callback_t rxBuffAlloc
 
enet_rx_free_callback_t rxBuffFree
 
enet_callback_t callback
 
void * userData
 

Detailed Description

Defines the basic configuration structure for the ENET device.

Note:

  1. macSpecialConfig is used for a special control configuration, A logical OR of "enet_special_control_flag_t". For a special configuration for MAC, set this parameter to 0.
  2. txWatermark is used for a cut-through operation. It is in steps of 64 bytes: 0/1 - 64 bytes written to TX FIFO before transmission of a frame begins. 2 - 128 bytes written to TX FIFO .... 3 - 192 bytes written to TX FIFO .... The maximum of txWatermark is 0x2F - 4032 bytes written to TX FIFO .... txWatermark allows minimizing the transmit latency to set the txWatermark to 0 or 1 or for larger bus access latency 3 or larger due to contention for the system bus.
  3. rxFifoFullThreshold is similar to the txWatermark for cut-through operation in RX. It is in 64-bit words. The minimum is ENET_FIFO_MIN_RX_FULL and the maximum is 0xFF. If the end of the frame is stored in FIFO and the frame size if smaller than the txWatermark, the frame is still transmitted. The rule is the same for rxFifoFullThreshold in the receive direction.
  4. When "kENET_ControlFlowControlEnable" is set in the macSpecialConfig, ensure that the pauseDuration, rxFifoEmptyThreshold, and rxFifoStatEmptyThreshold are set for flow control enabled case.
  5. When "kENET_ControlStoreAndFwdDisabled" is set in the macSpecialConfig, ensure that the rxFifoFullThreshold and txFifoWatermark are set for store and forward disable.
  6. The rxAccelerConfig and txAccelerConfig default setting with 0 - accelerator are disabled. The "enet_tx_accelerator_t" and "enet_rx_accelerator_t" are recommended to be used to enable the transmit and receive accelerator. After the accelerators are enabled, the store and forward feature should be enabled. As a result, kENET_ControlStoreAndFwdDisabled should not be set.
  7. The intCoalesceCfg can be used in the rx or tx enabled cases to decrese the CPU loading.

The documentation for this struct was generated from the following file: