STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Peripheral Control functions

ETH control functions. More...

Collaboration diagram for Peripheral Control functions:

Functions

HAL_StatusTypeDef HAL_ETH_GetMACConfig (const ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
 Get the configuration of the MAC and MTL subsystems.
 
HAL_StatusTypeDef HAL_ETH_GetDMAConfig (const ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf)
 Get the configuration of the DMA.
 
HAL_StatusTypeDef HAL_ETH_SetMACConfig (ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
 Set the MAC configuration.
 
HAL_StatusTypeDef HAL_ETH_SetDMAConfig (ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf)
 Set the ETH DMA configuration.
 
void HAL_ETH_SetMDIOClockRange (ETH_HandleTypeDef *heth)
 Configures the Clock range of ETH MDIO interface.
 
void HAL_ETH_SetRxVLANIdentifier (ETH_HandleTypeDef *heth, uint32_t ComparisonBits, uint32_t VLANIdentifier)
 Set the VLAN Identifier for Rx packets.
 
HAL_StatusTypeDef HAL_ETH_GetMACFilterConfig (const ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig)
 Get the ETH MAC (L2) Filters configuration.
 
HAL_StatusTypeDef HAL_ETH_SetMACFilterConfig (ETH_HandleTypeDef *heth, const ETH_MACFilterConfigTypeDef *pFilterConfig)
 Set the ETH MAC (L2) Filters configuration.
 
HAL_StatusTypeDef HAL_ETH_SetHashTable (ETH_HandleTypeDef *heth, uint32_t *pHashTable)
 Set the ETH Hash Table Value.
 
HAL_StatusTypeDef HAL_ETH_SetSourceMACAddrMatch (const ETH_HandleTypeDef *heth, uint32_t AddrNbr, const uint8_t *pMACAddr)
 Set the source MAC Address to be matched.
 
void HAL_ETH_EnterPowerDownMode (ETH_HandleTypeDef *heth, const ETH_PowerDownConfigTypeDef *pPowerDownConfig)
 Enters the Power down mode.
 
void HAL_ETH_ExitPowerDownMode (ETH_HandleTypeDef *heth)
 Exits from the Power down mode.
 
HAL_StatusTypeDef HAL_ETH_SetWakeUpFilter (ETH_HandleTypeDef *heth, uint32_t *pFilter, uint32_t Count)
 Set the WakeUp filter.
 

Detailed Description

ETH control functions.

  ==============================================================================
                      ##### Peripheral Control functions #####
  ==============================================================================
  [..]
    This subsection provides a set of functions allowing to control the ETH
    peripheral.

Function Documentation

◆ HAL_ETH_GetMACConfig()

◆ HAL_ETH_GetDMAConfig()

◆ HAL_ETH_SetMACConfig()

HAL_StatusTypeDef HAL_ETH_SetMACConfig ( ETH_HandleTypeDef * heth,
ETH_MACConfigTypeDef * macconf )

#include <stm32f4xx_hal_eth.h>

Set the MAC configuration.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
macconfpointer to a ETH_MACConfigTypeDef structure that contains the configuration of the MAC.
Return values
HALstatus

Definition at line 2282 of file stm32f4xx_hal_eth.c.

References ETH_SetMACConfig(), ETH_HandleTypeDef::gState, HAL_ERROR, HAL_ETH_STATE_READY, and HAL_OK.

◆ HAL_ETH_SetDMAConfig()

HAL_StatusTypeDef HAL_ETH_SetDMAConfig ( ETH_HandleTypeDef * heth,
ETH_DMAConfigTypeDef * dmaconf )

#include <stm32f4xx_hal_eth.h>

Set the ETH DMA configuration.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
dmaconfpointer to a ETH_DMAConfigTypeDef structure that will hold the configuration of the ETH DMA.
Return values
HALstatus

Definition at line 2309 of file stm32f4xx_hal_eth.c.

References ETH_SetDMAConfig(), ETH_HandleTypeDef::gState, HAL_ERROR, HAL_ETH_STATE_READY, and HAL_OK.

◆ HAL_ETH_SetMDIOClockRange()

void HAL_ETH_SetMDIOClockRange ( ETH_HandleTypeDef * heth)

#include <stm32f4xx_hal_eth.h>

Configures the Clock range of ETH MDIO interface.

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

Definition at line 2334 of file stm32f4xx_hal_eth.c.

References ETH_MACMIIAR_CR_MASK, HAL_RCC_GetHCLKFreq(), and ETH_HandleTypeDef::Instance.

◆ HAL_ETH_SetRxVLANIdentifier()

void HAL_ETH_SetRxVLANIdentifier ( ETH_HandleTypeDef * heth,
uint32_t ComparisonBits,
uint32_t VLANIdentifier )

#include <stm32f4xx_hal_eth.h>

Set the VLAN Identifier for Rx packets.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
ComparisonBits12 or 16 bit comparison mode must be a value of ETH VLAN Tag Comparison
VLANIdentifierVLAN Identifier value
Return values
None

Definition at line 2536 of file stm32f4xx_hal_eth.c.

References ETH_REG_WRITE_DELAY, ETH_VLANTAGCOMPARISON_16BIT, HAL_Delay(), and ETH_HandleTypeDef::Instance.

◆ HAL_ETH_GetMACFilterConfig()

◆ HAL_ETH_SetMACFilterConfig()

◆ HAL_ETH_SetHashTable()

HAL_StatusTypeDef HAL_ETH_SetHashTable ( ETH_HandleTypeDef * heth,
uint32_t * pHashTable )

#include <stm32f4xx_hal_eth.h>

Set the ETH Hash Table Value.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
pHashTablepointer to a table of two 32 bit values, that contains the 64 bits of the hash table.
Return values
HALstatus

Definition at line 2500 of file stm32f4xx_hal_eth.c.

References ETH_REG_WRITE_DELAY, HAL_Delay(), HAL_ERROR, HAL_OK, and ETH_HandleTypeDef::Instance.

◆ HAL_ETH_SetSourceMACAddrMatch()

HAL_StatusTypeDef HAL_ETH_SetSourceMACAddrMatch ( const ETH_HandleTypeDef * heth,
uint32_t AddrNbr,
const uint8_t * pMACAddr )

#include <stm32f4xx_hal_eth.h>

Set the source MAC Address to be matched.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
AddrNbrThe MAC address to configure This parameter must be a value of the following: ETH_MAC_ADDRESS1 ETH_MAC_ADDRESS2 ETH_MAC_ADDRESS3
pMACAddrPointer to MAC address buffer data (6 bytes)
Return values
HALstatus

Definition at line 2464 of file stm32f4xx_hal_eth.c.

References HAL_ERROR, HAL_OK, and ETH_HandleTypeDef::Instance.

◆ HAL_ETH_EnterPowerDownMode()

void HAL_ETH_EnterPowerDownMode ( ETH_HandleTypeDef * heth,
const ETH_PowerDownConfigTypeDef * pPowerDownConfig )

#include <stm32f4xx_hal_eth.h>

Enters the Power down mode.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
pPowerDownConfiga pointer to ETH_PowerDownConfigTypeDef structure that contains the Power Down configuration
Return values
None.

Definition at line 2564 of file stm32f4xx_hal_eth.c.

References ETH_MACPMTCSR_MASK, ETH_PowerDownConfigTypeDef::GlobalUnicast, ETH_HandleTypeDef::Instance, ETH_PowerDownConfigTypeDef::MagicPacket, and ETH_PowerDownConfigTypeDef::WakeUpPacket.

◆ HAL_ETH_ExitPowerDownMode()

void HAL_ETH_ExitPowerDownMode ( ETH_HandleTypeDef * heth)

#include <stm32f4xx_hal_eth.h>

Exits from the Power down mode.

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

Definition at line 2582 of file stm32f4xx_hal_eth.c.

References ETH_REG_WRITE_DELAY, HAL_Delay(), and ETH_HandleTypeDef::Instance.

◆ HAL_ETH_SetWakeUpFilter()

HAL_StatusTypeDef HAL_ETH_SetWakeUpFilter ( ETH_HandleTypeDef * heth,
uint32_t * pFilter,
uint32_t Count )

#include <stm32f4xx_hal_eth.h>

Set the WakeUp filter.

Parameters
hethpointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module
pFilterpointer to filter registers values
Countnumber of filter registers, must be from 1 to 8.
Return values
None.

Definition at line 2619 of file stm32f4xx_hal_eth.c.

References HAL_ERROR, HAL_OK, and ETH_HandleTypeDef::Instance.