STM32F439xx HAL User Manual
|
Modules | |
Initialization and de-initialization functions | |
Initialization and Configuration functions. | |
IO operation functions | |
UART Transmit and Receive functions. | |
Peripheral Control functions | |
UART control functions. | |
Peripheral State and Errors functions | |
UART State and Errors functions. | |
Functions | |
static void | UART_DMATransmitCplt (DMA_HandleTypeDef *hdma) |
DMA UART transmit process complete callback. | |
static void | UART_DMATxHalfCplt (DMA_HandleTypeDef *hdma) |
DMA UART transmit process half complete callback. | |
static void | UART_DMAReceiveCplt (DMA_HandleTypeDef *hdma) |
DMA UART receive process complete callback. | |
static void | UART_DMARxHalfCplt (DMA_HandleTypeDef *hdma) |
DMA UART receive process half complete callback. | |
static void | UART_DMAError (DMA_HandleTypeDef *hdma) |
DMA UART communication error callback. | |
static HAL_StatusTypeDef | UART_WaitOnFlagUntilTimeout (UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout) |
This function handles UART Communication Timeout. | |
static void | UART_EndTxTransfer (UART_HandleTypeDef *huart) |
End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion). | |
static void | UART_EndRxTransfer (UART_HandleTypeDef *huart) |
End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). | |
static void | UART_DMAAbortOnError (DMA_HandleTypeDef *hdma) |
DMA UART communication abort callback, when initiated by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence). | |
static void | UART_DMATxAbortCallback (DMA_HandleTypeDef *hdma) |
DMA UART Tx communication abort callback, when initiated by user (To be called at end of DMA Tx Abort procedure following user abort request). | |
static void | UART_DMARxAbortCallback (DMA_HandleTypeDef *hdma) |
DMA UART Rx communication abort callback, when initiated by user (To be called at end of DMA Rx Abort procedure following user abort request). | |
static void | UART_DMATxOnlyAbortCallback (DMA_HandleTypeDef *hdma) |
DMA UART Tx communication abort callback, when initiated by user by a call to HAL_UART_AbortTransmit_IT API (Abort only Tx transfer) (This callback is executed at end of DMA Tx Abort procedure following user abort request, and leads to user Tx Abort Complete callback execution). | |
static void | UART_DMARxOnlyAbortCallback (DMA_HandleTypeDef *hdma) |
DMA UART Rx communication abort callback, when initiated by user by a call to HAL_UART_AbortReceive_IT API (Abort only Rx transfer) (This callback is executed at end of DMA Rx Abort procedure following user abort request, and leads to user Rx Abort Complete callback execution). | |
static HAL_StatusTypeDef | UART_Transmit_IT (UART_HandleTypeDef *huart) |
Sends an amount of data in non blocking mode. | |
static HAL_StatusTypeDef | UART_EndTransmit_IT (UART_HandleTypeDef *huart) |
Wraps up transmission in non blocking mode. | |
static HAL_StatusTypeDef | UART_Receive_IT (UART_HandleTypeDef *huart) |
Receives an amount of data in non blocking mode. | |
static void | UART_SetConfig (UART_HandleTypeDef *huart) |
Configures the UART peripheral. |
static void UART_DMAAbortOnError | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART communication abort callback, when initiated by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence).
hdma | DMA handle. |
None |
Definition at line 2171 of file stm32f4xx_hal_uart.c.
References HAL_UART_ErrorCallback(), UART_HandleTypeDef::RxXferCount, and UART_HandleTypeDef::TxXferCount.
Referenced by HAL_UART_IRQHandler().
static void UART_DMAError | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART communication error callback.
hdma | DMA handle |
None |
Definition at line 2073 of file stm32f4xx_hal_uart.c.
References UART_HandleTypeDef::ErrorCode, UART_HandleTypeDef::gState, HAL_UART_ERROR_DMA, HAL_UART_ErrorCallback(), HAL_UART_STATE_BUSY_RX, HAL_UART_STATE_BUSY_TX, UART_HandleTypeDef::Instance, UART_HandleTypeDef::RxState, UART_HandleTypeDef::RxXferCount, UART_HandleTypeDef::TxXferCount, UART_EndRxTransfer(), and UART_EndTxTransfer().
Referenced by HAL_UART_Receive_DMA(), and HAL_UART_Transmit_DMA().
static void UART_DMAReceiveCplt | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART receive process complete callback.
hdma | DMA handle |
None |
Definition at line 2033 of file stm32f4xx_hal_uart.c.
References HAL_UART_RxCpltCallback(), HAL_UART_STATE_READY, __DMA_HandleTypeDef::Instance, UART_HandleTypeDef::Instance, UART_HandleTypeDef::RxState, and UART_HandleTypeDef::RxXferCount.
Referenced by HAL_UART_Receive_DMA().
static void UART_DMARxAbortCallback | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART Rx communication abort callback, when initiated by user (To be called at end of DMA Rx Abort procedure following user abort request).
hdma | DMA handle. |
None |
Definition at line 2226 of file stm32f4xx_hal_uart.c.
References UART_HandleTypeDef::ErrorCode, UART_HandleTypeDef::gState, HAL_UART_AbortCpltCallback(), HAL_UART_ERROR_NONE, HAL_UART_STATE_READY, UART_HandleTypeDef::hdmarx, UART_HandleTypeDef::hdmatx, UART_HandleTypeDef::RxState, UART_HandleTypeDef::RxXferCount, UART_HandleTypeDef::TxXferCount, and __DMA_HandleTypeDef::XferAbortCallback.
Referenced by HAL_UART_Abort_IT().
static void UART_DMARxHalfCplt | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART receive process half complete callback.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module. |
None |
Definition at line 2061 of file stm32f4xx_hal_uart.c.
References HAL_UART_RxHalfCpltCallback().
Referenced by HAL_UART_Receive_DMA().
static void UART_DMARxOnlyAbortCallback | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART Rx communication abort callback, when initiated by user by a call to HAL_UART_AbortReceive_IT API (Abort only Rx transfer) (This callback is executed at end of DMA Rx Abort procedure following user abort request, and leads to user Rx Abort Complete callback execution).
hdma | DMA handle. |
None |
Definition at line 2285 of file stm32f4xx_hal_uart.c.
References HAL_UART_AbortReceiveCpltCallback(), HAL_UART_STATE_READY, UART_HandleTypeDef::RxState, and UART_HandleTypeDef::RxXferCount.
Referenced by HAL_UART_AbortReceive_IT().
static void UART_DMATransmitCplt | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART transmit process complete callback.
hdma | DMA handle |
None |
Definition at line 1992 of file stm32f4xx_hal_uart.c.
References HAL_UART_TxCpltCallback(), __DMA_HandleTypeDef::Instance, UART_HandleTypeDef::Instance, and UART_HandleTypeDef::TxXferCount.
Referenced by HAL_UART_Transmit_DMA().
static void UART_DMATxAbortCallback | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART Tx communication abort callback, when initiated by user (To be called at end of DMA Tx Abort procedure following user abort request).
hdma | DMA handle. |
None |
Definition at line 2188 of file stm32f4xx_hal_uart.c.
References UART_HandleTypeDef::ErrorCode, UART_HandleTypeDef::gState, HAL_UART_AbortCpltCallback(), HAL_UART_ERROR_NONE, HAL_UART_STATE_READY, UART_HandleTypeDef::hdmarx, UART_HandleTypeDef::hdmatx, UART_HandleTypeDef::RxState, UART_HandleTypeDef::RxXferCount, UART_HandleTypeDef::TxXferCount, and __DMA_HandleTypeDef::XferAbortCallback.
Referenced by HAL_UART_Abort_IT().
static void UART_DMATxHalfCplt | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART transmit process half complete callback.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module. |
None |
Definition at line 2021 of file stm32f4xx_hal_uart.c.
References HAL_UART_TxHalfCpltCallback().
Referenced by HAL_UART_Transmit_DMA().
static void UART_DMATxOnlyAbortCallback | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
DMA UART Tx communication abort callback, when initiated by user by a call to HAL_UART_AbortTransmit_IT API (Abort only Tx transfer) (This callback is executed at end of DMA Tx Abort procedure following user abort request, and leads to user Tx Abort Complete callback execution).
hdma | DMA handle. |
None |
Definition at line 2264 of file stm32f4xx_hal_uart.c.
References UART_HandleTypeDef::gState, HAL_UART_AbortTransmitCpltCallback(), HAL_UART_STATE_READY, and UART_HandleTypeDef::TxXferCount.
Referenced by HAL_UART_AbortTransmit_IT().
static void UART_EndRxTransfer | ( | UART_HandleTypeDef * | huart | ) | [static] |
End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
huart | UART handle. |
None |
Definition at line 2155 of file stm32f4xx_hal_uart.c.
References HAL_UART_STATE_READY, UART_HandleTypeDef::Instance, and UART_HandleTypeDef::RxState.
Referenced by HAL_UART_DMAStop(), HAL_UART_IRQHandler(), and UART_DMAError().
static HAL_StatusTypeDef UART_EndTransmit_IT | ( | UART_HandleTypeDef * | huart | ) | [static] |
Wraps up transmission in non blocking mode.
huart | pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module. |
HAL | status |
Definition at line 2351 of file stm32f4xx_hal_uart.c.
References UART_HandleTypeDef::gState, HAL_UART_STATE_READY, HAL_UART_TxCpltCallback(), and UART_HandleTypeDef::Instance.
Referenced by HAL_UART_IRQHandler().
static void UART_EndTxTransfer | ( | UART_HandleTypeDef * | huart | ) | [static] |
End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion).
huart | UART handle. |
None |
Definition at line 2141 of file stm32f4xx_hal_uart.c.
References UART_HandleTypeDef::gState, HAL_UART_STATE_READY, and UART_HandleTypeDef::Instance.
Referenced by HAL_UART_DMAStop(), and UART_DMAError().
static HAL_StatusTypeDef UART_Receive_IT | ( | UART_HandleTypeDef * | huart | ) | [static] |
Receives an amount of data in non blocking mode.
huart | pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module. |
HAL | status |
Definition at line 2370 of file stm32f4xx_hal_uart.c.
References HAL_UART_RxCpltCallback(), HAL_UART_STATE_BUSY_RX, HAL_UART_STATE_READY, UART_HandleTypeDef::Init, UART_HandleTypeDef::Instance, UART_InitTypeDef::Parity, UART_HandleTypeDef::pRxBuffPtr, UART_HandleTypeDef::RxState, UART_HandleTypeDef::RxXferCount, UART_PARITY_NONE, UART_WORDLENGTH_9B, and UART_InitTypeDef::WordLength.
Referenced by HAL_UART_IRQHandler().
static void UART_SetConfig | ( | UART_HandleTypeDef * | huart | ) | [static] |
Configures the UART peripheral.
huart | pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module. |
None |
Definition at line 2432 of file stm32f4xx_hal_uart.c.
References assert_param, UART_InitTypeDef::BaudRate, HAL_RCC_GetPCLK1Freq(), HAL_RCC_GetPCLK2Freq(), UART_InitTypeDef::HwFlowCtl, UART_HandleTypeDef::Init, UART_HandleTypeDef::Instance, IS_UART_BAUDRATE, IS_UART_MODE, IS_UART_PARITY, IS_UART_STOPBITS, UART_InitTypeDef::Mode, UART_InitTypeDef::OverSampling, UART_InitTypeDef::Parity, UART_InitTypeDef::StopBits, UART_BRR_SAMPLING16, UART_BRR_SAMPLING8, UART_OVERSAMPLING_8, and UART_InitTypeDef::WordLength.
Referenced by HAL_HalfDuplex_Init(), HAL_LIN_Init(), HAL_MultiProcessor_Init(), and HAL_UART_Init().
static HAL_StatusTypeDef UART_Transmit_IT | ( | UART_HandleTypeDef * | huart | ) | [static] |
Sends an amount of data in non blocking mode.
huart | Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module. |
HAL | status |
Definition at line 2304 of file stm32f4xx_hal_uart.c.
References UART_HandleTypeDef::gState, HAL_UART_STATE_BUSY_TX, UART_HandleTypeDef::Init, UART_HandleTypeDef::Instance, UART_InitTypeDef::Parity, UART_HandleTypeDef::pTxBuffPtr, UART_HandleTypeDef::TxXferCount, UART_PARITY_NONE, UART_WORDLENGTH_9B, and UART_InitTypeDef::WordLength.
Referenced by HAL_UART_IRQHandler().
static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout | ( | UART_HandleTypeDef * | huart, |
uint32_t | Flag, | ||
FlagStatus | Status, | ||
uint32_t | Tickstart, | ||
uint32_t | Timeout | ||
) | [static] |
This function handles UART Communication Timeout.
huart | pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module. |
Flag | specifies the UART flag to check. |
Status | The new Flag status (SET or RESET). |
Tickstart | Tick start value |
Timeout | Timeout duration |
HAL | status |
Definition at line 2108 of file stm32f4xx_hal_uart.c.
References __HAL_UART_GET_FLAG, UART_HandleTypeDef::gState, HAL_GetTick(), HAL_UART_STATE_READY, UART_HandleTypeDef::Instance, and UART_HandleTypeDef::RxState.
Referenced by HAL_UART_Receive(), and HAL_UART_Transmit().