ETH control functions.
More...
|
HAL_StatusTypeDef | HAL_ETH_GetMACConfig (const ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) |
| Get the configuration of the MAC and MTL subsystems. More...
|
|
HAL_StatusTypeDef | HAL_ETH_GetDMAConfig (const ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf) |
| Get the configuration of the DMA. More...
|
|
HAL_StatusTypeDef | HAL_ETH_SetMACConfig (ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) |
| Set the MAC configuration. More...
|
|
HAL_StatusTypeDef | HAL_ETH_SetDMAConfig (ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf) |
| Set the ETH DMA configuration. More...
|
|
void | HAL_ETH_SetMDIOClockRange (ETH_HandleTypeDef *heth) |
| Configures the Clock range of ETH MDIO interface. More...
|
|
void | HAL_ETH_SetRxVLANIdentifier (ETH_HandleTypeDef *heth, uint32_t ComparisonBits, uint32_t VLANIdentifier) |
| Set the VLAN Identifier for Rx packets. More...
|
|
HAL_StatusTypeDef | HAL_ETH_GetMACFilterConfig (const ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig) |
| Get the ETH MAC (L2) Filters configuration. More...
|
|
HAL_StatusTypeDef | HAL_ETH_SetMACFilterConfig (ETH_HandleTypeDef *heth, const ETH_MACFilterConfigTypeDef *pFilterConfig) |
| Set the ETH MAC (L2) Filters configuration. More...
|
|
HAL_StatusTypeDef | HAL_ETH_SetHashTable (ETH_HandleTypeDef *heth, uint32_t *pHashTable) |
| Set the ETH Hash Table Value. More...
|
|
HAL_StatusTypeDef | HAL_ETH_SetSourceMACAddrMatch (const ETH_HandleTypeDef *heth, uint32_t AddrNbr, const uint8_t *pMACAddr) |
| Set the source MAC Address to be matched. More...
|
|
void | HAL_ETH_EnterPowerDownMode (ETH_HandleTypeDef *heth, const ETH_PowerDownConfigTypeDef *pPowerDownConfig) |
| Enters the Power down mode. More...
|
|
void | HAL_ETH_ExitPowerDownMode (ETH_HandleTypeDef *heth) |
| Exits from the Power down mode. More...
|
|
HAL_StatusTypeDef | HAL_ETH_SetWakeUpFilter (ETH_HandleTypeDef *heth, uint32_t *pFilter, uint32_t Count) |
| Set the WakeUp filter. More...
|
|
ETH control functions.
==============================================================================
##### Peripheral Control functions #####
==============================================================================
[..]
This subsection provides a set of functions allowing to control the ETH
peripheral.
◆ HAL_ETH_EnterPowerDownMode()
Enters the Power down mode.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
pPowerDownConfig | a pointer to ETH_PowerDownConfigTypeDef structure that contains the Power Down configuration |
- Return values
-
Definition at line 2564 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_ExitPowerDownMode()
Exits from the Power down mode.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
- Return values
-
Definition at line 2582 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_GetDMAConfig()
Get the configuration of the DMA.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
dmaconf | pointer to a ETH_DMAConfigTypeDef structure that will hold the configuration of the ETH DMA. |
- Return values
-
Definition at line 2243 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_GetMACConfig()
Get the configuration of the MAC and MTL subsystems.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
macconf | pointer to a ETH_MACConfigTypeDef structure that will hold the configuration of the MAC. |
- Return values
-
Definition at line 2200 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_GetMACFilterConfig()
Get the ETH MAC (L2) Filters configuration.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
pFilterConfig | pointer to a ETH_MACFilterConfigTypeDef structure that will hold the configuration of the ETH MAC filters. |
- Return values
-
Definition at line 2427 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetDMAConfig()
Set the ETH DMA configuration.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
dmaconf | pointer to a ETH_DMAConfigTypeDef structure that will hold the configuration of the ETH DMA. |
- Return values
-
Definition at line 2309 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetHashTable()
HAL_StatusTypeDef HAL_ETH_SetHashTable |
( |
ETH_HandleTypeDef * |
heth, |
|
|
uint32_t * |
pHashTable |
|
) |
| |
Set the ETH Hash Table Value.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
pHashTable | pointer to a table of two 32 bit values, that contains the 64 bits of the hash table. |
- Return values
-
Definition at line 2500 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetMACConfig()
Set the MAC configuration.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
macconf | pointer to a ETH_MACConfigTypeDef structure that contains the configuration of the MAC. |
- Return values
-
Definition at line 2282 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetMACFilterConfig()
Set the ETH MAC (L2) Filters configuration.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
pFilterConfig | pointer to a ETH_MACFilterConfigTypeDef structure that contains the configuration of the ETH MAC filters. |
- Return values
-
Definition at line 2386 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetMDIOClockRange()
Configures the Clock range of ETH MDIO interface.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
- Return values
-
Definition at line 2334 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetRxVLANIdentifier()
void HAL_ETH_SetRxVLANIdentifier |
( |
ETH_HandleTypeDef * |
heth, |
|
|
uint32_t |
ComparisonBits, |
|
|
uint32_t |
VLANIdentifier |
|
) |
| |
Set the VLAN Identifier for Rx packets.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
ComparisonBits | 12 or 16 bit comparison mode must be a value of ETH VLAN Tag Comparison |
VLANIdentifier | VLAN Identifier value |
- Return values
-
Definition at line 2536 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetSourceMACAddrMatch()
HAL_StatusTypeDef HAL_ETH_SetSourceMACAddrMatch |
( |
const ETH_HandleTypeDef * |
heth, |
|
|
uint32_t |
AddrNbr, |
|
|
const uint8_t * |
pMACAddr |
|
) |
| |
Set the source MAC Address to be matched.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
AddrNbr | The MAC address to configure This parameter must be a value of the following: ETH_MAC_ADDRESS1 ETH_MAC_ADDRESS2 ETH_MAC_ADDRESS3 |
pMACAddr | Pointer to MAC address buffer data (6 bytes) |
- Return values
-
Definition at line 2464 of file stm32f4xx_hal_eth.c.
◆ HAL_ETH_SetWakeUpFilter()
HAL_StatusTypeDef HAL_ETH_SetWakeUpFilter |
( |
ETH_HandleTypeDef * |
heth, |
|
|
uint32_t * |
pFilter, |
|
|
uint32_t |
Count |
|
) |
| |
Set the WakeUp filter.
- Parameters
-
heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
pFilter | pointer to filter registers values |
Count | number of filter registers, must be from 1 to 8. |
- Return values
-
Definition at line 2619 of file stm32f4xx_hal_eth.c.