STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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. | |
|
static |
#include <stm32f4xx_hal_eth.c>
Definition at line 2749 of file stm32f4xx_hal_eth.c.
References ETH_MACConfigTypeDef::AutomaticPadCRCStrip, ETH_MACConfigTypeDef::BackOffLimit, ETH_MACConfigTypeDef::CarrierSenseDuringTransmit, ETH_MACConfigTypeDef::ChecksumOffload, ETH_MACConfigTypeDef::CRCStripTypePacket, ETH_MACConfigTypeDef::DeferralCheck, ETH_MACConfigTypeDef::DuplexMode, ETH_MACCR_CLEAR_MASK, ETH_MACFCR_CLEAR_MASK, ETH_REG_WRITE_DELAY, HAL_Delay(), ETH_HandleTypeDef::Instance, ETH_MACConfigTypeDef::InterPacketGapVal, ETH_MACConfigTypeDef::Jabber, ETH_MACConfigTypeDef::LoopbackMode, ETH_MACConfigTypeDef::PauseLowThreshold, ETH_MACConfigTypeDef::PauseTime, ETH_MACConfigTypeDef::ReceiveFlowControl, ETH_MACConfigTypeDef::ReceiveOwn, ETH_MACConfigTypeDef::RetryTransmission, ETH_MACConfigTypeDef::Speed, ETH_MACConfigTypeDef::TransmitFlowControl, ETH_MACConfigTypeDef::UnicastPausePacketDetect, ETH_MACConfigTypeDef::Watchdog, and ETH_MACConfigTypeDef::ZeroQuantaPause.
Referenced by ETH_MACDMAConfig(), and HAL_ETH_SetMACConfig().
|
static |
#include <stm32f4xx_hal_eth.c>
Definition at line 2807 of file stm32f4xx_hal_eth.c.
References ETH_DMAConfigTypeDef::AddressAlignedBeats, ETH_DMAConfigTypeDef::BurstMode, ETH_DMAConfigTypeDef::DescriptorSkipLength, ETH_DMAConfigTypeDef::DMAArbitration, ETH_DMAConfigTypeDef::DropTCPIPChecksumErrorFrame, ETH_DMAConfigTypeDef::EnhancedDescriptorFormat, ETH_DMAOMR_CLEAR_MASK, ETH_REG_WRITE_DELAY, ETH_DMAConfigTypeDef::FlushRxPacket, ETH_DMAConfigTypeDef::ForwardErrorFrames, ETH_DMAConfigTypeDef::ForwardUndersizedGoodFrames, HAL_Delay(), ETH_HandleTypeDef::Instance, ETH_DMAConfigTypeDef::ReceiveStoreForward, ETH_DMAConfigTypeDef::ReceiveThresholdControl, ETH_DMAConfigTypeDef::RxDMABurstLength, ETH_DMAConfigTypeDef::SecondFrameOperate, ETH_DMAConfigTypeDef::TransmitStoreForward, ETH_DMAConfigTypeDef::TransmitThresholdControl, and ETH_DMAConfigTypeDef::TxDMABurstLength.
Referenced by ETH_MACDMAConfig(), and HAL_ETH_SetDMAConfig().
|
static |
#include <stm32f4xx_hal_eth.c>
Configures Ethernet MAC and DMA with default parameters. called by HAL_ETH_Init() API.
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
HAL | status |
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().
|
static |
#include <stm32f4xx_hal_eth.c>
Initializes the DMA Tx descriptors. called by HAL_ETH_Init() API.
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
None |
Definition at line 2950 of file stm32f4xx_hal_eth.c.
References ETH_TxDescListTypeDef::CurTxDesc, ETH_DMADescTypeDef::DESC0, ETH_DMADescTypeDef::DESC1, ETH_DMADescTypeDef::DESC2, ETH_DMADescTypeDef::DESC3, ETH_DMATXDESC_CHECKSUMTCPUDPICMPFULL, ETH_DMATXDESC_TCH, ETH_TX_DESC_CNT, ETH_HandleTypeDef::Init, ETH_HandleTypeDef::Instance, ETH_InitTypeDef::TxDesc, ETH_TxDescListTypeDef::TxDesc, and ETH_HandleTypeDef::TxDescList.
Referenced by HAL_ETH_Init().
|
static |
#include <stm32f4xx_hal_eth.c>
Initializes the DMA Rx descriptors in chain mode. called by HAL_ETH_Init() API.
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
None |
Definition at line 2996 of file stm32f4xx_hal_eth.c.
References ETH_DMADescTypeDef::BackupAddr0, ETH_DMADescTypeDef::BackupAddr1, ETH_DMADescTypeDef::DESC0, ETH_DMADescTypeDef::DESC1, ETH_DMADescTypeDef::DESC2, ETH_DMADescTypeDef::DESC3, ETH_DMARXDESC_OWN, ETH_DMARXDESC_RCH, ETH_RX_DESC_CNT, ETH_HandleTypeDef::Init, ETH_HandleTypeDef::Instance, ETH_RxDescListTypeDef::ItMode, ETH_InitTypeDef::RxBuffLen, ETH_RxDescListTypeDef::RxBuildDescCnt, ETH_RxDescListTypeDef::RxBuildDescIdx, ETH_InitTypeDef::RxDesc, ETH_RxDescListTypeDef::RxDesc, ETH_RxDescListTypeDef::RxDescCnt, ETH_RxDescListTypeDef::RxDescIdx, and ETH_HandleTypeDef::RxDescList.
Referenced by HAL_ETH_Init().
|
static |
#include <stm32f4xx_hal_eth.c>
Prepare Tx DMA descriptor before transmission. called by HAL_ETH_Transmit_IT and HAL_ETH_Transmit_IT() API.
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
pTxConfig | Tx packet configuration |
ItMode | Enable or disable Tx EOT interrept |
Status |
Definition at line 3052 of file stm32f4xx_hal_eth.c.
References ETH_TxPacketConfigTypeDef::Attributes, __ETH_BufferTypeDef::buffer, ETH_TxDescListTypeDef::BuffersInUse, ETH_TxPacketConfigTypeDef::ChecksumCtrl, ETH_TxPacketConfigTypeDef::CRCPadCtrl, ETH_TxDescListTypeDef::CurrentPacketAddress, ETH_TxDescListTypeDef::CurTxDesc, ETH_DMADescTypeDef::DESC0, ETH_DMADescTypeDef::DESC1, ETH_DMADescTypeDef::DESC2, ETH_CRC_PAD_DISABLE, ETH_DMATXDESC_CIC, ETH_DMATXDESC_FS, ETH_DMATXDESC_IC, ETH_DMATXDESC_LS, ETH_DMATXDESC_OWN, ETH_DMATXDESC_TBS1, ETH_DMATXDESC_VF, ETH_TX_PACKETS_FEATURES_CRCPAD, ETH_TX_PACKETS_FEATURES_CSUM, ETH_TX_PACKETS_FEATURES_VLANTAG, HAL_ETH_ERROR_BUSY, HAL_ETH_ERROR_NONE, INCR_TX_DESC_INDEX, __ETH_BufferTypeDef::len, __ETH_BufferTypeDef::next, ETH_TxDescListTypeDef::PacketAddress, ETH_TxPacketConfigTypeDef::TxBuffer, ETH_TxDescListTypeDef::TxDesc, and ETH_HandleTypeDef::TxDescList.
Referenced by HAL_ETH_Transmit(), and HAL_ETH_Transmit_IT().
|
static |
#include <stm32f4xx_hal_eth.c>
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.
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
HAL | status |
Definition at line 1196 of file stm32f4xx_hal_eth.c.
References ETH_DMADescTypeDef::BackupAddr0, ETH_DMADescTypeDef::DESC0, ETH_DMADescTypeDef::DESC1, ETH_DMADescTypeDef::DESC2, ETH_DMARXDESC_DIC, ETH_DMARXDESC_OWN, ETH_DMARXDESC_RCH, ETH_RX_DESC_CNT, HAL_ETH_RxAllocateCallback(), INCR_RX_DESC_INDEX, ETH_HandleTypeDef::Init, ETH_HandleTypeDef::Instance, ETH_RxDescListTypeDef::ItMode, ETH_HandleTypeDef::rxAllocateCallback, ETH_InitTypeDef::RxBuffLen, ETH_RxDescListTypeDef::RxBuildDescCnt, ETH_RxDescListTypeDef::RxBuildDescIdx, ETH_InitTypeDef::RxDesc, ETH_RxDescListTypeDef::RxDesc, and ETH_HandleTypeDef::RxDescList.
Referenced by HAL_ETH_ReadData(), HAL_ETH_Start(), and HAL_ETH_Start_IT().
|
static |
#include <stm32f4xx_hal_eth.c>
Clears the ETHERNET transmit FIFO.
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
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().
|
static |
#include <stm32f4xx_hal_eth.c>
Configures the selected MAC address.
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
MacAddr | The MAC address to configure This parameter can be one of the following values:
|
Addr | Pointer to MAC address buffer data (6 bytes) |
HAL | status |
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().