Initialization and Configuration functions.
More...
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.
◆ HAL_ETH_DeInit()
DeInitializes the ETH peripheral.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
- Return values
-
Definition at line 433 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_Init()
Initialize the Ethernet peripheral registers.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
- Return values
-
Definition at line 336 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_MspDeInit()
DeInitializes ETH MSP.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
- Return values
-
Definition at line 481 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_MspInit()
Initializes the ETH MSP.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
- Return values
-
Definition at line 466 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_RegisterCallback()
Register a User ETH Callback To be used instead of the weak predefined callback.
- Parameters
-
heth | eth handle |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
- Return values
-
Definition at line 507 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_UnRegisterCallback()
Unregister an ETH Callback ETH callback is redirected to the weak predefined callback.
- Parameters
-
heth | eth handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
- Return values
-
Definition at line 606 of file stm32f4xx_hal_eth.c.