STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
ETH Private Functions
Collaboration diagram for ETH Private Functions:

Functions

static void ETH_SetMACConfig (ETH_HandleTypeDef *heth, const ETH_MACConfigTypeDef *macconf)
 
static void ETH_SetDMAConfig (ETH_HandleTypeDef *heth, const ETH_DMAConfigTypeDef *dmaconf)
 
static void ETH_MACDMAConfig (ETH_HandleTypeDef *heth)
 Configures Ethernet MAC and DMA with default parameters. called by HAL_ETH_Init() API.
 
static void ETH_DMATxDescListInit (ETH_HandleTypeDef *heth)
 Initializes the DMA Tx descriptors. called by HAL_ETH_Init() API.
 
static void ETH_DMARxDescListInit (ETH_HandleTypeDef *heth)
 Initializes the DMA Rx descriptors in chain mode. called by HAL_ETH_Init() API.
 
static uint32_t ETH_Prepare_Tx_Descriptors (ETH_HandleTypeDef *heth, const ETH_TxPacketConfigTypeDef *pTxConfig, uint32_t ItMode)
 Prepare Tx DMA descriptor before transmission. called by HAL_ETH_Transmit_IT and HAL_ETH_Transmit_IT() API.
 
static void ETH_UpdateDescriptor (ETH_HandleTypeDef *heth)
 This function gives back Rx Desc of the last received Packet to the DMA, so ETH DMA will be able to use these descriptors to receive next Packets.
 
static void ETH_FlushTransmitFIFO (ETH_HandleTypeDef *heth)
 Clears the ETHERNET transmit FIFO.
 
static void ETH_MACAddressConfig (ETH_HandleTypeDef *heth, uint32_t MacAddr, uint8_t *Addr)
 Configures the selected MAC address.
 

Detailed Description

Function Documentation

◆ ETH_SetMACConfig()

◆ ETH_SetDMAConfig()

◆ ETH_MACDMAConfig()

static void ETH_MACDMAConfig ( ETH_HandleTypeDef * heth)
static

#include <stm32f4xx_hal_eth.c>

Configures Ethernet MAC and DMA with default parameters. called by HAL_ETH_Init() API.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
Return values
HALstatus

Definition at line 2861 of file stm32f4xx_hal_eth.c.

References ETH_DMAConfigTypeDef::AddressAlignedBeats, ETH_MACConfigTypeDef::AutomaticPadCRCStrip, ETH_MACConfigTypeDef::BackOffLimit, ETH_DMAConfigTypeDef::BurstMode, ETH_MACConfigTypeDef::CarrierSenseDuringTransmit, ETH_MACConfigTypeDef::ChecksumOffload, ETH_MACConfigTypeDef::CRCStripTypePacket, ETH_MACConfigTypeDef::DeferralCheck, ETH_DMAConfigTypeDef::DescriptorSkipLength, ETH_DMAConfigTypeDef::DMAArbitration, ETH_DMAConfigTypeDef::DropTCPIPChecksumErrorFrame, ETH_MACConfigTypeDef::DuplexMode, ETH_DMAConfigTypeDef::EnhancedDescriptorFormat, ETH_BACKOFFLIMIT_10, ETH_BURSTLENGTH_FIXED, ETH_DMAARBITRATION_ROUNDROBIN_RXTX_1_1, ETH_FULLDUPLEX_MODE, ETH_INTERFRAMEGAP_96BIT, ETH_PAUSELOWTHRESHOLD_MINUS4, ETH_RECEIVEDTHRESHOLDCONTROL_64BYTES, ETH_RXDMABURSTLENGTH_32BEAT, ETH_SetDMAConfig(), ETH_SetMACConfig(), ETH_SPEED_100M, ETH_TRANSMITTHRESHOLDCONTROL_64BYTES, ETH_TXDMABURSTLENGTH_32BEAT, ETH_DMAConfigTypeDef::FlushRxPacket, ETH_DMAConfigTypeDef::ForwardErrorFrames, ETH_DMAConfigTypeDef::ForwardUndersizedGoodFrames, ETH_MACConfigTypeDef::InterPacketGapVal, ETH_MACConfigTypeDef::Jabber, ETH_MACConfigTypeDef::LoopbackMode, ETH_MACConfigTypeDef::PauseLowThreshold, ETH_MACConfigTypeDef::PauseTime, ETH_MACConfigTypeDef::ReceiveFlowControl, ETH_MACConfigTypeDef::ReceiveOwn, ETH_DMAConfigTypeDef::ReceiveStoreForward, ETH_DMAConfigTypeDef::ReceiveThresholdControl, ETH_MACConfigTypeDef::RetryTransmission, ETH_DMAConfigTypeDef::RxDMABurstLength, ETH_DMAConfigTypeDef::SecondFrameOperate, ETH_MACConfigTypeDef::Speed, ETH_MACConfigTypeDef::TransmitFlowControl, ETH_DMAConfigTypeDef::TransmitStoreForward, ETH_DMAConfigTypeDef::TransmitThresholdControl, ETH_DMAConfigTypeDef::TxDMABurstLength, ETH_MACConfigTypeDef::UnicastPausePacketDetect, ETH_MACConfigTypeDef::Watchdog, and ETH_MACConfigTypeDef::ZeroQuantaPause.

Referenced by HAL_ETH_Init().

◆ ETH_DMATxDescListInit()

static void ETH_DMATxDescListInit ( ETH_HandleTypeDef * heth)
static

◆ ETH_DMARxDescListInit()

◆ ETH_Prepare_Tx_Descriptors()

◆ ETH_UpdateDescriptor()

static void ETH_UpdateDescriptor ( ETH_HandleTypeDef * heth)
static

◆ ETH_FlushTransmitFIFO()

static void ETH_FlushTransmitFIFO ( ETH_HandleTypeDef * heth)
static

#include <stm32f4xx_hal_eth.c>

Clears the ETHERNET transmit FIFO.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
Return values
None

Definition at line 2735 of file stm32f4xx_hal_eth.c.

References ETH_REG_WRITE_DELAY, HAL_Delay(), and ETH_HandleTypeDef::Instance.

Referenced by HAL_ETH_Start(), HAL_ETH_Start_IT(), HAL_ETH_Stop(), and HAL_ETH_Stop_IT().

◆ ETH_MACAddressConfig()

static void ETH_MACAddressConfig ( ETH_HandleTypeDef * heth,
uint32_t MacAddr,
uint8_t * Addr )
static

#include <stm32f4xx_hal_eth.c>

Configures the selected MAC address.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
MacAddrThe MAC address to configure This parameter can be one of the following values:
  • ETH_MAC_Address0: MAC Address0
  • ETH_MAC_Address1: MAC Address1
  • ETH_MAC_Address2: MAC Address2
  • ETH_MAC_Address3: MAC Address3
AddrPointer to MAC address buffer data (6 bytes)
Return values
HALstatus

Definition at line 2925 of file stm32f4xx_hal_eth.c.

References ETH_MAC_ADDR_HBASE, ETH_MAC_ADDR_LBASE, and UNUSED.

Referenced by HAL_ETH_Init().