HAL USART Generic Driver
Function description
Parameters
Return values
Notes
HAL_USART_IRQHandler
Function name
Function description
Parameters
Return values
HAL_USART_TxCpltCallback
Function name
Function description
Parameters
Return values
HAL_USART_TxHalfCpltCallback
Function name
Function description
Parameters
Return values
682/1371
(USART_HandleTypeDef * husart)
Abort ongoing transfer (Interrupt mode).
husart: USART handle.
HAL: status
This procedure could be used for aborting any ongoing
transfer (either Tx or Rx, as described by TransferType
parameter) started in Interrupt or DMA mode. This procedure
performs following operations : Disable PPP Interrupts
(depending of transfer direction)Disable the DMA transfer in
the peripheral register (if enabled)Abort DMA transfer by
calling HAL_DMA_Abort_IT (in case of transfer in DMA
mode)Set handle State to READYAt abort completion, call
user abort complete callback
This procedure is executed in Interrupt mode, meaning that
abort procedure could be considered as completed only when
user abort complete callback is executed (not when exiting
function).
void HAL_USART_IRQHandler (USART_HandleTypeDef *
husart)
This function handles USART interrupt request.
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
None:
void HAL_USART_TxCpltCallback (USART_HandleTypeDef *
husart)
Tx Transfer completed callbacks.
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
None:
void HAL_USART_TxHalfCpltCallback
(USART_HandleTypeDef * husart)
Tx Half Transfer completed callbacks.
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
None:
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers