STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Initialization and deinitialization functions

Initialization and Configuration functions. More...

Collaboration diagram for Initialization and deinitialization functions:

Functions

HAL_StatusTypeDef HAL_ETH_Init (ETH_HandleTypeDef *heth)
 Initialize the Ethernet peripheral registers.
 
HAL_StatusTypeDef HAL_ETH_DeInit (ETH_HandleTypeDef *heth)
 DeInitializes the ETH peripheral.
 
void HAL_ETH_MspInit (ETH_HandleTypeDef *heth)
 Initializes the ETH MSP.
 
void HAL_ETH_MspDeInit (ETH_HandleTypeDef *heth)
 DeInitializes ETH MSP.
 

Detailed Description

Initialization and Configuration functions.

===============================================================================
            ##### Initialization and Configuration functions #####
 ===============================================================================
    [..]  This subsection provides a set of functions allowing to initialize and
          deinitialize the ETH peripheral:

      (+) User must Implement HAL_ETH_MspInit() function in which he configures
          all related peripherals resources (CLOCK, GPIO and NVIC ).

      (+) Call the function HAL_ETH_Init() to configure the selected device with
          the selected configuration:
        (++) MAC address
        (++) Media interface (MII or RMII)
        (++) Rx DMA Descriptors Tab
        (++) Tx DMA Descriptors Tab
        (++) Length of Rx Buffers

      (+) Call the function HAL_ETH_DeInit() to restore the default configuration
          of the selected ETH peripheral.

Function Documentation

◆ HAL_ETH_Init()

◆ HAL_ETH_DeInit()

HAL_StatusTypeDef HAL_ETH_DeInit ( ETH_HandleTypeDef * heth)

#include <stm32f4xx_hal_eth.h>

DeInitializes the ETH peripheral.

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

Definition at line 433 of file stm32f4xx_hal_eth.c.

References ETH_HandleTypeDef::gState, HAL_ETH_MspDeInit(), HAL_ETH_STATE_BUSY, HAL_ETH_STATE_RESET, and HAL_OK.

◆ HAL_ETH_MspInit()

__weak void HAL_ETH_MspInit ( ETH_HandleTypeDef * heth)

#include <stm32f4xx_hal_eth.h>

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 466 of file stm32f4xx_hal_eth.c.

References UNUSED.

Referenced by HAL_ETH_Init().

◆ HAL_ETH_MspDeInit()

__weak void HAL_ETH_MspDeInit ( ETH_HandleTypeDef * heth)

#include <stm32f4xx_hal_eth.h>

DeInitializes ETH MSP.

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

Definition at line 481 of file stm32f4xx_hal_eth.c.

References UNUSED.

Referenced by HAL_ETH_DeInit().