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

« Back to documentation index

USART Private Functions

USART Private Functions
[USART]

Functions

static void USART_EndTransfer (USART_HandleTypeDef *husart)
 End ongoing transfer on USART peripheral (following error detection or Transfer completion).
static void USART_DMATransmitCplt (DMA_HandleTypeDef *hdma)
 DMA USART transmit process complete callback.
static void USART_DMAReceiveCplt (DMA_HandleTypeDef *hdma)
 DMA USART receive process complete callback.
static void USART_DMATxHalfCplt (DMA_HandleTypeDef *hdma)
 DMA USART transmit process half complete callback.
static void USART_DMARxHalfCplt (DMA_HandleTypeDef *hdma)
 DMA USART receive process half complete callback.
static void USART_DMAError (DMA_HandleTypeDef *hdma)
 DMA USART communication error callback.
static HAL_StatusTypeDef USART_WaitOnFlagUntilTimeout (USART_HandleTypeDef *husart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
 Handle USART Communication Timeout.
static HAL_StatusTypeDef USART_SetConfig (USART_HandleTypeDef *husart)
 Configure the USART peripheral.
static HAL_StatusTypeDef USART_CheckIdleState (USART_HandleTypeDef *husart)
 Check the USART Idle State.
static void USART_DMAAbortOnError (DMA_HandleTypeDef *hdma)
 DMA USART communication abort callback, when initiated by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence).
static HAL_StatusTypeDef USART_Transmit_IT (USART_HandleTypeDef *husart)
 Simplex send an amount of data in non-blocking mode.
static HAL_StatusTypeDef USART_EndTransmit_IT (USART_HandleTypeDef *husart)
 Wraps up transmission in non-blocking mode.
static HAL_StatusTypeDef USART_Receive_IT (USART_HandleTypeDef *husart)
 Simplex receive an amount of data in non-blocking mode.
static HAL_StatusTypeDef USART_TransmitReceive_IT (USART_HandleTypeDef *husart)
 Full-Duplex Send receive an amount of data in full-duplex mode (non-blocking).

Function Documentation

static HAL_StatusTypeDef USART_CheckIdleState ( USART_HandleTypeDef *  husart ) [static]

Check the USART Idle State.

Parameters:
husart,:USART handle.
Return values:
HALstatus

Definition at line 1723 of file stm32l4xx_hal_usart.c.

static void USART_DMAAbortOnError ( DMA_HandleTypeDef *  hdma ) [static]

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

Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 1593 of file stm32l4xx_hal_usart.c.

static void USART_DMAError ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART communication error callback.

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

Definition at line 1573 of file stm32l4xx_hal_usart.c.

static void USART_DMAReceiveCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART receive process complete callback.

Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 1509 of file stm32l4xx_hal_usart.c.

static void USART_DMARxHalfCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART receive process half complete callback.

Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 1561 of file stm32l4xx_hal_usart.c.

static void USART_DMATransmitCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART transmit process complete callback.

Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 1463 of file stm32l4xx_hal_usart.c.

static void USART_DMATxHalfCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART transmit process half complete callback.

Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 1497 of file stm32l4xx_hal_usart.c.

static void USART_EndTransfer ( USART_HandleTypeDef *  husart ) [static]

End ongoing transfer on USART peripheral (following error detection or Transfer completion).

Parameters:
husartUSART handle.
Return values:
None

Definition at line 1447 of file stm32l4xx_hal_usart.c.

static HAL_StatusTypeDef USART_EndTransmit_IT ( USART_HandleTypeDef *  husart ) [static]

Wraps up transmission in non-blocking mode.

Parameters:
husartPointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module.
Return values:
HALstatus

Definition at line 1820 of file stm32l4xx_hal_usart.c.

static HAL_StatusTypeDef USART_Receive_IT ( USART_HandleTypeDef *  husart ) [static]

Simplex receive an amount of data in non-blocking mode.

Note:
Function called under interruption only, once interruptions have been enabled by HAL_USART_Receive_IT().
Parameters:
husartUSART handle
Return values:
HALstatus

Definition at line 1844 of file stm32l4xx_hal_usart.c.

static HAL_StatusTypeDef USART_SetConfig ( USART_HandleTypeDef *  husart ) [static]

Configure the USART peripheral.

Parameters:
husart,:USART handle.
Return values:
HALstatus

Definition at line 1642 of file stm32l4xx_hal_usart.c.

static HAL_StatusTypeDef USART_Transmit_IT ( USART_HandleTypeDef *  husart ) [static]

Simplex send an amount of data in non-blocking mode.

Note:
Function called under interruption only, once interruptions have been enabled by HAL_USART_Transmit_IT().
The USART errors are not managed to avoid the overrun error.
Parameters:
husartUSART handle.
Return values:
HALstatus

Definition at line 1771 of file stm32l4xx_hal_usart.c.

static HAL_StatusTypeDef USART_TransmitReceive_IT ( USART_HandleTypeDef *  husart ) [static]

Full-Duplex Send receive an amount of data in full-duplex mode (non-blocking).

Note:
Function called under interruption only, once interruptions have been enabled by HAL_USART_TransmitReceive_IT().
Parameters:
husart,:USART handle.
Return values:
HALstatus

Definition at line 1896 of file stm32l4xx_hal_usart.c.

static HAL_StatusTypeDef USART_WaitOnFlagUntilTimeout ( USART_HandleTypeDef *  husart,
uint32_t  Flag,
FlagStatus  Status,
uint32_t  Tickstart,
uint32_t  Timeout 
) [static]

Handle USART Communication Timeout.

Parameters:
husartUSART handle.
FlagSpecifies the USART flag to check.
Statusthe Flag status (SET or RESET).
TickstartTick start value
Timeouttimeout duration.
Return values:
HALstatus

Definition at line 1611 of file stm32l4xx_hal_usart.c.