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

HAL UART Generic Driver

 

UM1725

 

pData: Pointer to data buffer

 

 

Size: Amount of data to be sent

Return values

 

HAL status

60.2.18HAL_UART_Receive_DMA

Function Name

HAL_StatusTypeDef HAL_UART_Receive_DMA

 

(UART_HandleTypeDef * huart, uint8_t * pData, uint16_t Size)

Function Description

Receives an amount of data in non blocking mode.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

 

pData: Pointer to data buffer

 

Size: Amount of data to be received

Return values

 

HAL status

Notes

When the UART parity is enabled (PCE = 1) the data

 

 

received contain the parity bit.

60.2.19HAL_UART_DMAPause

Function Name

HAL_StatusTypeDef HAL_UART_DMAPause

 

(UART_HandleTypeDef * huart)

Function Description

Pauses the DMA Transfer.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

HAL status

60.2.20HAL_UART_DMAResume

Function Name

HAL_StatusTypeDef HAL_UART_DMAResume

 

(UART_HandleTypeDef * huart)

Function Description

Resumes the DMA Transfer.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

HAL status

60.2.21HAL_UART_DMAStop

Function Name

HAL_StatusTypeDef HAL_UART_DMAStop

 

(UART_HandleTypeDef * huart)

Function Description

Stops the DMA Transfer.

Parameters

huart: pointer to a UART_HandleTypeDef structure that

 

contains the configuration information for the specified UART

 

module.

852/900

DOCID025834 Rev 2

UM1725

HAL UART Generic Driver

Return values

HAL status

60.2.22HAL_UART_IRQHandler

Function Name

void HAL_UART_IRQHandler (UART_HandleTypeDef * huart)

Function Description

This function handles UART interrupt request.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

None

60.2.23HAL_UART_TxCpltCallback

Function Name

void HAL_UART_TxCpltCallback (UART_HandleTypeDef *

 

huart)

Function Description

Tx Transfer completed callbacks.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

None

60.2.24HAL_UART_TxHalfCpltCallback

Function Name

void HAL_UART_TxHalfCpltCallback (UART_HandleTypeDef *

 

huart)

Function Description

Tx Half Transfer completed callbacks.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

None

60.2.25HAL_UART_RxCpltCallback

Function Name

void HAL_UART_RxCpltCallback (UART_HandleTypeDef *

 

huart)

Function Description

Rx Transfer completed callbacks.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

None

60.2.26HAL_UART_RxHalfCpltCallback

Function Name

void HAL_UART_RxHalfCpltCallback (UART_HandleTypeDef *

 

huart)

 

Function Description

Rx Half Transfer completed callbacks.

 

Parameters

huart: pointer to a UART_HandleTypeDef structure that

 

DOCID025834 Rev 2

853/900

HAL UART Generic Driver

UM1725

 

contains the configuration information for the specified UART

 

module.

Return values

None

60.2.27HAL_UART_ErrorCallback

Function Name

void HAL_UART_ErrorCallback (UART_HandleTypeDef *

 

huart)

Function Description

UART error callbacks.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

None

60.2.28HAL_LIN_SendBreak

Function Name

HAL_StatusTypeDef HAL_LIN_SendBreak

 

(UART_HandleTypeDef * huart)

Function Description

Transmits break characters.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

HAL status

60.2.29HAL_MultiProcessor_EnterMuteMode

Function Name

HAL_StatusTypeDef HAL_MultiProcessor_EnterMuteMode

 

(UART_HandleTypeDef * huart)

Function Description

Enters the UART in mute mode.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

HAL status

60.2.30HAL_MultiProcessor_ExitMuteMode

Function Name

HAL_StatusTypeDef HAL_MultiProcessor_ExitMuteMode

 

(UART_HandleTypeDef * huart)

Function Description

Exits the UART mute mode: wake up software.

Parameters

 

huart: pointer to a UART_HandleTypeDef structure that

 

 

contains the configuration information for the specified UART

 

 

module.

Return values

 

HAL status

60.2.31HAL_HalfDuplex_EnableTransmitter

Function Name

HAL_StatusTypeDef HAL_HalfDuplex_EnableTransmitter

854/900

DOCID025834 Rev 2

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