TUKS MCU Introductory course / TUKS-COURSE-2-LED
Embed: (wiki syntax)

« Back to documentation index

UART Private Functions

UART Private Functions
[UART]

Functions

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_DMATransmitCplt (DMA_HandleTypeDef *hdma)
 DMA UART transmit process 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_DMATxHalfCplt (DMA_HandleTypeDef *hdma)
 DMA UART transmit process half complete callback.
static void UART_DMAError (DMA_HandleTypeDef *hdma)
 DMA UART communication error callback.
static void UART_DMAAbortOnError (DMA_HandleTypeDef *hdma)
 DMA UART communication abort callback, when call by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence).
static HAL_StatusTypeDef UART_Transmit_IT (UART_HandleTypeDef *huart)
 Send an amount of data in interrupt mode.
static HAL_StatusTypeDef UART_EndTransmit_IT (UART_HandleTypeDef *huart)
 Wrap up transmission in non-blocking mode.
static HAL_StatusTypeDef UART_Receive_IT (UART_HandleTypeDef *huart)
 Receive an amount of data in interrupt mode.
HAL_StatusTypeDef UART_SetConfig (UART_HandleTypeDef *huart)
 Configure the UART peripheral.
void UART_AdvFeatureConfig (UART_HandleTypeDef *huart)
 Configure the UART peripheral advanced features.
HAL_StatusTypeDef UART_CheckIdleState (UART_HandleTypeDef *huart)
 Check the UART Idle State.
HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout (UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
 Handle UART Communication Timeout.

Function Documentation

void UART_AdvFeatureConfig ( UART_HandleTypeDef *  huart )

Configure the UART peripheral advanced features.

Parameters:
huart,:UART handle.
Return values:
None

Definition at line 1741 of file stm32l4xx_hal_uart.c.

HAL_StatusTypeDef UART_CheckIdleState ( UART_HandleTypeDef *  huart )

Check the UART Idle State.

Parameters:
huart,:UART handle.
Return values:
HALstatus

Definition at line 1815 of file stm32l4xx_hal_uart.c.

static void UART_DMAAbortOnError ( DMA_HandleTypeDef *  hdma ) [static]

DMA UART communication abort callback, when call by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence).

Parameters:
hdma,:DMA handle.
Return values:
None

Definition at line 2041 of file stm32l4xx_hal_uart.c.

static void UART_DMAError ( DMA_HandleTypeDef *  hdma ) [static]

DMA UART communication error callback.

Parameters:
hdma,:DMA handle.
Return values:
None

Definition at line 2011 of file stm32l4xx_hal_uart.c.

static void UART_DMAReceiveCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA UART receive process complete callback.

Parameters:
hdma,:DMA handle.
Return values:
None

Definition at line 1970 of file stm32l4xx_hal_uart.c.

static void UART_DMARxHalfCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA UART receive process half complete callback.

Parameters:
hdma: DMA handle.
Return values:
None

Definition at line 1999 of file stm32l4xx_hal_uart.c.

static void UART_DMATransmitCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA UART transmit process complete callback.

Parameters:
hdma,:DMA handle.
Return values:
None

Definition at line 1929 of file stm32l4xx_hal_uart.c.

static void UART_DMATxHalfCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA UART transmit process half complete callback.

Parameters:
hdma: DMA handle.
Return values:
None

Definition at line 1958 of file stm32l4xx_hal_uart.c.

static void UART_EndRxTransfer ( UART_HandleTypeDef *  huart ) [static]

End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).

Parameters:
huart,:UART handle.
Return values:
None

Definition at line 1913 of file stm32l4xx_hal_uart.c.

static HAL_StatusTypeDef UART_EndTransmit_IT ( UART_HandleTypeDef *  huart ) [static]

Wrap up transmission in non-blocking mode.

Parameters:
huart,:pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module.
Return values:
HALstatus

Definition at line 2106 of file stm32l4xx_hal_uart.c.

static void UART_EndTxTransfer ( UART_HandleTypeDef *  huart ) [static]

End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion).

Parameters:
huart,:UART handle.
Return values:
None

Definition at line 1898 of file stm32l4xx_hal_uart.c.

static HAL_StatusTypeDef UART_Receive_IT ( UART_HandleTypeDef *  huart ) [static]

Receive an amount of data in interrupt mode.

Note:
Function is called under interruption only, once interruptions have been enabled by HAL_UART_Receive_IT()
Parameters:
huart,:UART handle.
Return values:
HALstatus

Definition at line 2127 of file stm32l4xx_hal_uart.c.

HAL_StatusTypeDef UART_SetConfig ( UART_HandleTypeDef *  huart )

Configure the UART peripheral.

Parameters:
huart,:UART handle.
Return values:
HALstatus

Definition at line 1550 of file stm32l4xx_hal_uart.c.

static HAL_StatusTypeDef UART_Transmit_IT ( UART_HandleTypeDef *  huart ) [static]

Send an amount of data in interrupt mode.

Note:
Function is called under interruption only, once interruptions have been enabled by HAL_UART_Transmit_IT().
Parameters:
huart,:UART handle.
Return values:
HALstatus

Definition at line 2057 of file stm32l4xx_hal_uart.c.

HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout ( UART_HandleTypeDef *  huart,
uint32_t  Flag,
FlagStatus  Status,
uint32_t  Tickstart,
uint32_t  Timeout 
)

Handle UART Communication Timeout.

Parameters:
huart,:UART handle.
FlagSpecifies the UART flag to check
StatusFlag status (SET or RESET)
TickstartTick start value
TimeoutTimeout duration
Return values:
HALstatus

Definition at line 1865 of file stm32l4xx_hal_uart.c.