STM32F439xx HAL User Manual
Functions
Initialization and de-initialization functions
ETH Exported Functions

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_ETH_Init (ETH_HandleTypeDef *heth)
 Initializes the Ethernet MAC and DMA according to default parameters.
HAL_StatusTypeDef HAL_ETH_DeInit (ETH_HandleTypeDef *heth)
 De-Initializes the ETH peripheral.
HAL_StatusTypeDef HAL_ETH_DMATxDescListInit (ETH_HandleTypeDef *heth, ETH_DMADescTypeDef *DMATxDescTab, uint8_t *TxBuff, uint32_t TxBuffCount)
 Initializes the DMA Tx descriptors in chain mode.
HAL_StatusTypeDef HAL_ETH_DMARxDescListInit (ETH_HandleTypeDef *heth, ETH_DMADescTypeDef *DMARxDescTab, uint8_t *RxBuff, uint32_t RxBuffCount)
 Initializes the DMA Rx descriptors in chain mode.
__weak void HAL_ETH_MspInit (ETH_HandleTypeDef *heth)
 Initializes the ETH MSP.
__weak void HAL_ETH_MspDeInit (ETH_HandleTypeDef *heth)
 DeInitializes ETH MSP.

Detailed Description

Initialization and Configuration functions.

  ===============================================================================
            ##### Initialization and de-initialization functions #####
  ===============================================================================
  [..]  This section provides functions allowing to:
      (+) Initialize and configure the Ethernet peripheral
      (+) De-initialize the Ethernet peripheral

  

Function Documentation

HAL_StatusTypeDef HAL_ETH_DeInit ( ETH_HandleTypeDef heth)

De-Initializes the ETH peripheral.

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

Definition at line 450 of file stm32f4xx_hal_eth.c.

References HAL_ETH_MspDeInit(), HAL_ETH_STATE_BUSY, HAL_ETH_STATE_RESET, and ETH_HandleTypeDef::State.

HAL_StatusTypeDef HAL_ETH_DMARxDescListInit ( ETH_HandleTypeDef heth,
ETH_DMADescTypeDef DMARxDescTab,
uint8_t *  RxBuff,
uint32_t  RxBuffCount 
)

Initializes the DMA Rx descriptors in chain mode.

Parameters:
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
DMARxDescTabPointer to the first Rx desc list
RxBuffPointer to the first RxBuffer list
RxBuffCountNumber of the used Rx desc in the list
Return values:
HALstatus

Definition at line 544 of file stm32f4xx_hal_eth.c.

References ETH_DMADescTypeDef::Buffer1Addr, ETH_DMADescTypeDef::Buffer2NextDescAddr, ETH_DMADescTypeDef::ControlBufferSize, ETH_DMARXDESC_DIC, ETH_DMARXDESC_OWN, ETH_DMARXDESC_RCH, ETH_RX_BUF_SIZE, ETH_RXINTERRUPT_MODE, HAL_ETH_STATE_BUSY, HAL_ETH_STATE_READY, ETH_HandleTypeDef::Init, ETH_HandleTypeDef::Instance, ETH_HandleTypeDef::RxDesc, ETH_HandleTypeDef::State, and ETH_DMADescTypeDef::Status.

HAL_StatusTypeDef HAL_ETH_DMATxDescListInit ( ETH_HandleTypeDef heth,
ETH_DMADescTypeDef DMATxDescTab,
uint8_t *  TxBuff,
uint32_t  TxBuffCount 
)

Initializes the DMA Tx descriptors in chain mode.

Parameters:
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
DMATxDescTabPointer to the first Tx desc list
TxBuffPointer to the first TxBuffer list
TxBuffCountNumber of the used Tx desc in the list
Return values:
HALstatus

Definition at line 477 of file stm32f4xx_hal_eth.c.

References ETH_DMADescTypeDef::Buffer1Addr, ETH_DMADescTypeDef::Buffer2NextDescAddr, ETH_CHECKSUM_BY_HARDWARE, ETH_DMATXDESC_CHECKSUMTCPUDPICMPFULL, ETH_DMATXDESC_TCH, ETH_TX_BUF_SIZE, HAL_ETH_STATE_BUSY, HAL_ETH_STATE_READY, ETH_HandleTypeDef::Init, ETH_HandleTypeDef::Instance, ETH_HandleTypeDef::State, ETH_DMADescTypeDef::Status, and ETH_HandleTypeDef::TxDesc.

HAL_StatusTypeDef HAL_ETH_Init ( ETH_HandleTypeDef heth)

DeInitializes ETH MSP.

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

Definition at line 626 of file stm32f4xx_hal_eth.c.

Referenced by HAL_ETH_DeInit().

Initializes the ETH MSP.

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

Definition at line 611 of file stm32f4xx_hal_eth.c.

Referenced by HAL_ETH_Init().