|
STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Initialization and Configuration functions. More...
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. | |
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_StatusTypeDef HAL_ETH_Init | ( | ETH_HandleTypeDef * | heth | ) |
#include <stm32f4xx_hal_eth.h>
Initialize the Ethernet peripheral registers.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| HAL | status |
Definition at line 336 of file stm32f4xx_hal_eth.c.
References __HAL_RCC_SYSCFG_CLK_ENABLE, ETH_HandleTypeDef::ErrorCode, ETH_DMARxDescListInit(), ETH_DMATxDescListInit(), ETH_MAC_ADDRESS0, ETH_MACAddressConfig(), ETH_MACDMAConfig(), ETH_SWRESET_TIMEOUT, ETH_HandleTypeDef::gState, HAL_ERROR, HAL_ETH_ERROR_NONE, HAL_ETH_ERROR_TIMEOUT, HAL_ETH_MspInit(), HAL_ETH_STATE_BUSY, HAL_ETH_STATE_ERROR, HAL_ETH_STATE_READY, HAL_ETH_STATE_RESET, HAL_GetTick(), HAL_OK, ETH_HandleTypeDef::Init, ETH_HandleTypeDef::Instance, ETH_InitTypeDef::MACAddr, and ETH_InitTypeDef::MediaInterface.
| HAL_StatusTypeDef HAL_ETH_DeInit | ( | ETH_HandleTypeDef * | heth | ) |
#include <stm32f4xx_hal_eth.h>
DeInitializes the ETH peripheral.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| HAL | status |
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.
| __weak void HAL_ETH_MspInit | ( | ETH_HandleTypeDef * | heth | ) |
#include <stm32f4xx_hal_eth.h>
Initializes the ETH MSP.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| None |
Definition at line 466 of file stm32f4xx_hal_eth.c.
References UNUSED.
Referenced by HAL_ETH_Init().
| __weak void HAL_ETH_MspDeInit | ( | ETH_HandleTypeDef * | heth | ) |
#include <stm32f4xx_hal_eth.h>
DeInitializes ETH MSP.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| None |
Definition at line 481 of file stm32f4xx_hal_eth.c.
References UNUSED.
Referenced by HAL_ETH_DeInit().