STM32H735xx HAL User Manual
|
ETH control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_ETH_GetMACConfig (ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) |
Get the configuration of the MAC and MTL subsystems. | |
HAL_StatusTypeDef | HAL_ETH_GetDMAConfig (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. | |
HAL_StatusTypeDef | HAL_ETH_SetMACFilterConfig (ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig) |
Set the ETH MAC (L2) Filters configuration. | |
HAL_StatusTypeDef | HAL_ETH_GetMACFilterConfig (ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig) |
Get the ETH MAC (L2) Filters configuration. | |
HAL_StatusTypeDef | HAL_ETH_SetSourceMACAddrMatch (ETH_HandleTypeDef *heth, uint32_t AddrNbr, uint8_t *pMACAddr) |
Set the source MAC Address to be matched. | |
HAL_StatusTypeDef | HAL_ETH_SetHashTable (ETH_HandleTypeDef *heth, uint32_t *pHashTable) |
Set the ETH Hash Table Value. | |
void | HAL_ETH_SetRxVLANIdentifier (ETH_HandleTypeDef *heth, uint32_t ComparisonBits, uint32_t VLANIdentifier) |
Set the VLAN Identifier for Rx packets. | |
void | HAL_ETH_EnterPowerDownMode (ETH_HandleTypeDef *heth, 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. |
ETH control functions.
============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to control the ETH peripheral.
void HAL_ETH_EnterPowerDownMode | ( | ETH_HandleTypeDef * | heth, |
ETH_PowerDownConfigTypeDef * | pPowerDownConfig | ||
) |
Enters the Power down mode.
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 |
None. |
Definition at line 2247 of file stm32h7xx_hal_eth.c.
References __HAL_ETH_MAC_ENABLE_IT, ETH_MACPCSR_MASK, ETH_PowerDownConfigTypeDef::GlobalUnicast, __ETH_HandleTypeDef::Instance, ETH_PowerDownConfigTypeDef::MagicPacket, ETH_PowerDownConfigTypeDef::WakeUpForward, and ETH_PowerDownConfigTypeDef::WakeUpPacket.
void HAL_ETH_ExitPowerDownMode | ( | ETH_HandleTypeDef * | heth | ) |
Exits from the Power down mode.
heth,: | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
None. |
Definition at line 2269 of file stm32h7xx_hal_eth.c.
References __HAL_ETH_MAC_DISABLE_IT, and __ETH_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_ETH_GetDMAConfig | ( | ETH_HandleTypeDef * | heth, |
ETH_DMAConfigTypeDef * | dmaconf | ||
) |
Get the configuration of the DMA.
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. |
HAL | Status |
Definition at line 1963 of file stm32h7xx_hal_eth.c.
References ETH_DMAConfigTypeDef::AddressAlignedBeats, ETH_DMAConfigTypeDef::BurstMode, ETH_DMAConfigTypeDef::DMAArbitration, ETH_DMAConfigTypeDef::FlushRxPacket, __ETH_HandleTypeDef::Instance, ETH_DMAConfigTypeDef::MaximumSegmentSize, ETH_DMAConfigTypeDef::PBLx8Mode, ETH_DMAConfigTypeDef::RebuildINCRxBurst, ETH_DMAConfigTypeDef::RxDMABurstLength, ETH_DMAConfigTypeDef::SecondPacketOperate, ETH_DMAConfigTypeDef::TCPSegmentation, and ETH_DMAConfigTypeDef::TxDMABurstLength.
HAL_StatusTypeDef HAL_ETH_GetMACConfig | ( | ETH_HandleTypeDef * | heth, |
ETH_MACConfigTypeDef * | macconf | ||
) |
Get the configuration of the MAC and MTL subsystems.
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. |
HAL | Status |
Definition at line 1896 of file stm32h7xx_hal_eth.c.
References ETH_MACConfigTypeDef::AutomaticPadCRCStrip, ETH_MACConfigTypeDef::BackOffLimit, ETH_MACConfigTypeDef::CarrierSenseBeforeTransmit, ETH_MACConfigTypeDef::CarrierSenseDuringTransmit, ETH_MACConfigTypeDef::ChecksumOffload, ETH_MACConfigTypeDef::CRCCheckingRxPackets, ETH_MACConfigTypeDef::CRCStripTypePacket, ETH_MACConfigTypeDef::DeferralCheck, ETH_MACConfigTypeDef::DropTCPIPChecksumErrorPacket, ETH_MACConfigTypeDef::DuplexMode, ETH_MACConfigTypeDef::ExtendedInterPacketGap, ETH_MACConfigTypeDef::ExtendedInterPacketGapVal, ETH_MACConfigTypeDef::ForwardRxErrorPacket, ETH_MACConfigTypeDef::ForwardRxUndersizedGoodPacket, ETH_MACConfigTypeDef::GiantPacketSizeLimit, ETH_MACConfigTypeDef::GiantPacketSizeLimitControl, __ETH_HandleTypeDef::Instance, ETH_MACConfigTypeDef::InterPacketGapVal, ETH_MACConfigTypeDef::Jabber, ETH_MACConfigTypeDef::JumboPacket, ETH_MACConfigTypeDef::LoopbackMode, ETH_MACConfigTypeDef::PauseLowThreshold, ETH_MACConfigTypeDef::PauseTime, ETH_MACConfigTypeDef::PreambleLength, ETH_MACConfigTypeDef::ProgrammableWatchdog, ETH_MACConfigTypeDef::ReceiveFlowControl, ETH_MACConfigTypeDef::ReceiveOwn, ETH_MACConfigTypeDef::ReceiveQueueMode, ETH_MACConfigTypeDef::RetryTransmission, ETH_MACConfigTypeDef::SlowProtocolDetect, ETH_MACConfigTypeDef::SourceAddrControl, ETH_MACConfigTypeDef::Speed, ETH_MACConfigTypeDef::Support2KPacket, ETH_MACConfigTypeDef::TransmitFlowControl, ETH_MACConfigTypeDef::TransmitQueueMode, ETH_MACConfigTypeDef::UnicastPausePacketDetect, ETH_MACConfigTypeDef::UnicastSlowProtocolPacketDetect, ETH_MACConfigTypeDef::Watchdog, ETH_MACConfigTypeDef::WatchdogTimeout, and ETH_MACConfigTypeDef::ZeroQuantaPause.
HAL_StatusTypeDef HAL_ETH_GetMACFilterConfig | ( | ETH_HandleTypeDef * | heth, |
ETH_MACFilterConfigTypeDef * | pFilterConfig | ||
) |
Get the ETH MAC (L2) Filters configuration.
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. |
HAL | status |
Definition at line 2135 of file stm32h7xx_hal_eth.c.
References ETH_MACFilterConfigTypeDef::BroadcastFilter, ETH_MACFilterConfigTypeDef::ControlPacketsFilter, ETH_MACFilterConfigTypeDef::DestAddrInverseFiltering, ETH_MACFilterConfigTypeDef::HachOrPerfectFilter, ETH_MACFilterConfigTypeDef::HashMulticast, ETH_MACFilterConfigTypeDef::HashUnicast, __ETH_HandleTypeDef::Instance, ETH_MACFilterConfigTypeDef::PassAllMulticast, ETH_MACFilterConfigTypeDef::PromiscuousMode, ETH_MACFilterConfigTypeDef::ReceiveAllMode, ETH_MACFilterConfigTypeDef::SrcAddrFiltering, and ETH_MACFilterConfigTypeDef::SrcAddrInverseFiltering.
HAL_StatusTypeDef HAL_ETH_SetDMAConfig | ( | ETH_HandleTypeDef * | heth, |
ETH_DMAConfigTypeDef * | dmaconf | ||
) |
Set the ETH DMA configuration.
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. |
HAL | status |
Definition at line 2024 of file stm32h7xx_hal_eth.c.
References ETH_SetDMAConfig(), HAL_ETH_STATE_READY, and __ETH_HandleTypeDef::RxState.
HAL_StatusTypeDef HAL_ETH_SetHashTable | ( | ETH_HandleTypeDef * | heth, |
uint32_t * | pHashTable | ||
) |
Set the ETH Hash Table Value.
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. |
HAL | status |
Definition at line 2203 of file stm32h7xx_hal_eth.c.
References __ETH_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_ETH_SetMACConfig | ( | ETH_HandleTypeDef * | heth, |
ETH_MACConfigTypeDef * | macconf | ||
) |
Set the MAC configuration.
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. |
HAL | status |
Definition at line 1997 of file stm32h7xx_hal_eth.c.
References ETH_SetMACConfig(), HAL_ETH_STATE_READY, and __ETH_HandleTypeDef::RxState.
HAL_StatusTypeDef HAL_ETH_SetMACFilterConfig | ( | ETH_HandleTypeDef * | heth, |
ETH_MACFilterConfigTypeDef * | pFilterConfig | ||
) |
Set the ETH MAC (L2) Filters configuration.
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. |
HAL | status |
Definition at line 2101 of file stm32h7xx_hal_eth.c.
References ETH_MACFilterConfigTypeDef::BroadcastFilter, ETH_MACFilterConfigTypeDef::ControlPacketsFilter, ETH_MACFilterConfigTypeDef::DestAddrInverseFiltering, ETH_MACPFR_MASK, ETH_MACFilterConfigTypeDef::HachOrPerfectFilter, ETH_MACFilterConfigTypeDef::HashMulticast, ETH_MACFilterConfigTypeDef::HashUnicast, __ETH_HandleTypeDef::Instance, ETH_MACFilterConfigTypeDef::PassAllMulticast, ETH_MACFilterConfigTypeDef::PromiscuousMode, ETH_MACFilterConfigTypeDef::ReceiveAllMode, ETH_MACFilterConfigTypeDef::SrcAddrFiltering, and ETH_MACFilterConfigTypeDef::SrcAddrInverseFiltering.
void HAL_ETH_SetMDIOClockRange | ( | ETH_HandleTypeDef * | heth | ) |
Configures the Clock range of ETH MDIO interface.
heth,: | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
None |
Definition at line 2049 of file stm32h7xx_hal_eth.c.
References HAL_RCC_GetHCLKFreq(), and __ETH_HandleTypeDef::Instance.
void HAL_ETH_SetRxVLANIdentifier | ( | ETH_HandleTypeDef * | heth, |
uint32_t | ComparisonBits, | ||
uint32_t | VLANIdentifier | ||
) |
Set the VLAN Identifier for Rx packets.
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 |
None |
Definition at line 2225 of file stm32h7xx_hal_eth.c.
References ETH_VLANTAGCOMPARISON_16BIT, and __ETH_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_ETH_SetSourceMACAddrMatch | ( | ETH_HandleTypeDef * | heth, |
uint32_t | AddrNbr, | ||
uint8_t * | pMACAddr | ||
) |
Set the source MAC Address to be matched.
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) |
HAL | status |
Definition at line 2169 of file stm32h7xx_hal_eth.c.
References __ETH_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_ETH_SetWakeUpFilter | ( | ETH_HandleTypeDef * | heth, |
uint32_t * | pFilter, | ||
uint32_t | Count | ||
) |
Set the WakeUp filter.
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. |
None. |
Definition at line 2292 of file stm32h7xx_hal_eth.c.
References __ETH_HandleTypeDef::Instance.