|
STM32F479xx HAL User Manual
|
Data transfers functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_ETH_TransmitFrame (ETH_HandleTypeDef *heth, uint32_t FrameLength) |
| Sends an Ethernet frame. | |
| HAL_StatusTypeDef | HAL_ETH_GetReceivedFrame (ETH_HandleTypeDef *heth) |
| Checks for received frames. | |
| HAL_StatusTypeDef | HAL_ETH_GetReceivedFrame_IT (ETH_HandleTypeDef *heth) |
| Gets the Received frame in interrupt mode. | |
| void | HAL_ETH_IRQHandler (ETH_HandleTypeDef *heth) |
| This function handles ETH interrupt request. | |
| __weak void | HAL_ETH_TxCpltCallback (ETH_HandleTypeDef *heth) |
| Tx Transfer completed callbacks. | |
| __weak void | HAL_ETH_RxCpltCallback (ETH_HandleTypeDef *heth) |
| Rx Transfer completed callbacks. | |
| __weak void | HAL_ETH_ErrorCallback (ETH_HandleTypeDef *heth) |
| Ethernet transfer error callbacks. | |
| HAL_StatusTypeDef | HAL_ETH_ReadPHYRegister (ETH_HandleTypeDef *heth, uint16_t PHYReg, uint32_t *RegValue) |
| Reads a PHY register. | |
| HAL_StatusTypeDef | HAL_ETH_WritePHYRegister (ETH_HandleTypeDef *heth, uint16_t PHYReg, uint32_t RegValue) |
| Writes to a PHY register. | |
Data transfers functions.
==============================================================================
##### IO operation functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) Transmit a frame
HAL_ETH_TransmitFrame();
(+) Receive a frame
HAL_ETH_GetReceivedFrame();
HAL_ETH_GetReceivedFrame_IT();
(+) Read from an External PHY register
HAL_ETH_ReadPHYRegister();
(+) Write to an External PHY register
HAL_ETH_WritePHYRegister();
| void HAL_ETH_ErrorCallback | ( | ETH_HandleTypeDef * | heth | ) |
Ethernet transfer error callbacks.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| None |
Definition at line 1274 of file stm32f4xx_hal_eth.c.
Referenced by ETH_InitCallbacksToDefault(), HAL_ETH_IRQHandler(), and HAL_ETH_UnRegisterCallback().
| HAL_StatusTypeDef HAL_ETH_GetReceivedFrame | ( | ETH_HandleTypeDef * | heth | ) |
Checks for received frames.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| HAL | status |
Definition at line 1005 of file stm32f4xx_hal_eth.c.
References ETH_DMARxFrameInfos::buffer, ETH_DMADescTypeDef::Buffer2NextDescAddr, ETH_DMARXDESC_FL, ETH_DMARXDESC_FRAMELENGTHSHIFT, ETH_DMARXDESC_FS, ETH_DMARXDESC_LS, ETH_DMARXDESC_OWN, HAL_ETH_STATE_BUSY, HAL_ETH_STATE_READY, ETH_DMARxFrameInfos::length, ETH_DMARxFrameInfos::LSRxDesc, __ETH_HandleTypeDef::RxDesc, __ETH_HandleTypeDef::RxFrameInfos, __ETH_HandleTypeDef::State, and ETH_DMADescTypeDef::Status.
| HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT | ( | ETH_HandleTypeDef * | heth | ) |
Gets the Received frame in interrupt mode.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| HAL | status |
Definition at line 1085 of file stm32f4xx_hal_eth.c.
References ETH_DMARxFrameInfos::buffer, ETH_DMADescTypeDef::Buffer2NextDescAddr, ETH_DMARXDESC_FL, ETH_DMARXDESC_FRAMELENGTHSHIFT, ETH_DMARXDESC_FS, ETH_DMARXDESC_LS, ETH_DMARXDESC_OWN, ETH_RXBUFNB, ETH_DMARxFrameInfos::FSRxDesc, HAL_ETH_STATE_BUSY, HAL_ETH_STATE_READY, ETH_DMARxFrameInfos::length, ETH_DMARxFrameInfos::LSRxDesc, __ETH_HandleTypeDef::RxDesc, __ETH_HandleTypeDef::RxFrameInfos, ETH_DMARxFrameInfos::SegCount, __ETH_HandleTypeDef::State, and ETH_DMADescTypeDef::Status.
| void HAL_ETH_IRQHandler | ( | ETH_HandleTypeDef * | heth | ) |
This function handles ETH interrupt request.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| HAL | status |
Definition at line 1170 of file stm32f4xx_hal_eth.c.
References __HAL_ETH_DMA_CLEAR_IT, __HAL_ETH_DMA_GET_FLAG, __ETH_HandleTypeDef::DMAErrorCallback, ETH_DMA_FLAG_AIS, ETH_DMA_FLAG_R, ETH_DMA_FLAG_T, ETH_DMA_IT_NIS, ETH_DMA_IT_R, ETH_DMA_IT_T, HAL_ETH_ErrorCallback(), HAL_ETH_RxCpltCallback(), HAL_ETH_STATE_READY, HAL_ETH_TxCpltCallback(), __ETH_HandleTypeDef::RxCpltCallback, __ETH_HandleTypeDef::State, and __ETH_HandleTypeDef::TxCpltCallback.
| HAL_StatusTypeDef HAL_ETH_ReadPHYRegister | ( | ETH_HandleTypeDef * | heth, |
| uint16_t | PHYReg, | ||
| uint32_t * | RegValue | ||
| ) |
Reads a PHY register.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| PHYReg | PHY register address, is the index of one of the 32 PHY register. This parameter can be one of the following values: PHY_BCR: Transceiver Basic Control Register, PHY_BSR: Transceiver Basic Status Register. More PHY register could be read depending on the used PHY |
| RegValue | PHY register value |
| HAL | status |
Definition at line 1295 of file stm32f4xx_hal_eth.c.
References assert_param, ETH_MACMIIAR_CR_MASK, HAL_ETH_STATE_BUSY_RD, HAL_ETH_STATE_READY, HAL_GetTick(), __ETH_HandleTypeDef::Init, __ETH_HandleTypeDef::Instance, IS_ETH_PHY_ADDRESS, PHY_READ_TO, ETH_InitTypeDef::PhyAddress, and __ETH_HandleTypeDef::State.
Referenced by HAL_ETH_Init().
| void HAL_ETH_RxCpltCallback | ( | ETH_HandleTypeDef * | heth | ) |
Rx Transfer completed callbacks.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| None |
Definition at line 1259 of file stm32f4xx_hal_eth.c.
Referenced by ETH_InitCallbacksToDefault(), HAL_ETH_IRQHandler(), and HAL_ETH_UnRegisterCallback().
| HAL_StatusTypeDef HAL_ETH_TransmitFrame | ( | ETH_HandleTypeDef * | heth, |
| uint32_t | FrameLength | ||
| ) |
Sends an Ethernet frame.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| FrameLength | Amount of data to be sent |
| HAL | status |
Definition at line 892 of file stm32f4xx_hal_eth.c.
References ETH_DMADescTypeDef::Buffer2NextDescAddr, ETH_DMADescTypeDef::ControlBufferSize, ETH_DMATXDESC_FS, ETH_DMATXDESC_LS, ETH_DMATXDESC_OWN, ETH_DMATXDESC_TBS1, ETH_TX_BUF_SIZE, HAL_ETH_STATE_BUSY, HAL_ETH_STATE_BUSY_TX, HAL_ETH_STATE_READY, __ETH_HandleTypeDef::Instance, __ETH_HandleTypeDef::State, ETH_DMADescTypeDef::Status, and __ETH_HandleTypeDef::TxDesc.
| void HAL_ETH_TxCpltCallback | ( | ETH_HandleTypeDef * | heth | ) |
Tx Transfer completed callbacks.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| None |
Definition at line 1244 of file stm32f4xx_hal_eth.c.
Referenced by ETH_InitCallbacksToDefault(), HAL_ETH_IRQHandler(), and HAL_ETH_UnRegisterCallback().
| HAL_StatusTypeDef HAL_ETH_WritePHYRegister | ( | ETH_HandleTypeDef * | heth, |
| uint16_t | PHYReg, | ||
| uint32_t | RegValue | ||
| ) |
Writes to a PHY register.
| heth | pointer to a ETH_HandleTypeDef structure that contains the configuration information for ETHERNET module |
| PHYReg | PHY register address, is the index of one of the 32 PHY register. This parameter can be one of the following values: PHY_BCR: Transceiver Control Register. More PHY register could be written depending on the used PHY |
| RegValue | the value to write |
| HAL | status |
Definition at line 1367 of file stm32f4xx_hal_eth.c.
References assert_param, ETH_MACMIIAR_CR_MASK, HAL_ETH_STATE_BUSY_WR, HAL_ETH_STATE_READY, HAL_GetTick(), __ETH_HandleTypeDef::Init, __ETH_HandleTypeDef::Instance, IS_ETH_PHY_ADDRESS, PHY_WRITE_TO, ETH_InitTypeDef::PhyAddress, and __ETH_HandleTypeDef::State.
Referenced by HAL_ETH_Init().
1.7.6.1