Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL ETH Generic Driver

 

UM1725

Function Description

Checks for received frames.

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

HAL status

19.2.14HAL_ETH_GetReceivedFrame_IT

Function Name

HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT

 

(ETH_HandleTypeDef * heth)

Function Description

Gets the Received frame in interrupt mode.

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

HAL status

19.2.15HAL_ETH_IRQHandler

Function Name

void HAL_ETH_IRQHandler (ETH_HandleTypeDef * heth)

Function Description

This function handles ETH interrupt request.

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

HAL status

19.2.16HAL_ETH_TxCpltCallback

Function Name

void HAL_ETH_TxCpltCallback (ETH_HandleTypeDef * heth)

Function Description

Tx Transfer completed callbacks.

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

None

19.2.17HAL_ETH_RxCpltCallback

Function Name

void HAL_ETH_RxCpltCallback (ETH_HandleTypeDef * heth)

Function Description

Rx Transfer completed callbacks.

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

None

19.2.18HAL_ETH_ErrorCallback

Function Name

void HAL_ETH_ErrorCallback (ETH_HandleTypeDef * heth)

Function Description

Ethernet transfer error callbacks.

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

None

274/900

 

DOCID025834 Rev 2

UM1725

HAL ETH Generic Driver

19.2.19HAL_ETH_ReadPHYRegister

Function Name

HAL_StatusTypeDef HAL_ETH_ReadPHYRegister

 

(ETH_HandleTypeDef * heth, uint16_t PHYReg, uint32_t *

 

RegValue)

Function Description

Reads a PHY register.

Parameters

 

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

Return values

 

HAL status

19.2.20HAL_ETH_WritePHYRegister

Function Name

HAL_StatusTypeDef HAL_ETH_WritePHYRegister

 

(ETH_HandleTypeDef * heth, uint16_t PHYReg, uint32_t

 

RegValue)

Function Description

Writes to a PHY register.

Parameters

 

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

Return values

 

HAL status

19.2.21 HAL_ETH_Start

Function Name

HAL_StatusTypeDef HAL_ETH_Start (ETH_HandleTypeDef *

 

heth)

Function Description

Enables Ethernet MAC and DMA reception/transmission.

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

HAL status

19.2.22 HAL_ETH_Stop

Function Name

HAL_StatusTypeDef HAL_ETH_Stop (ETH_HandleTypeDef *

 

heth)

 

Function Description

Stop Ethernet MAC and DMA reception/transmission.

 

Parameters

 

heth: pointer to a ETH_HandleTypeDef structure that

 

 

contains the configuration information for ETHERNET module

Return values

 

HAL status

 

 

 

DOCID025834 Rev 2

275/900

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]