L4 HAL Drivers

Embed: (wiki syntax)

« Back to documentation index

USART Private Functions

USART Private Functions
[USART]

Functions

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 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 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 1561 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 1397 of file stm32l4xx_hal_usart.c.

static void USART_DMAReceiveCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART receive process complete callback.

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

Definition at line 1337 of file stm32l4xx_hal_usart.c.

static void USART_DMARxHalfCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART receive process half complete callback.

Parameters:
hdma: DMA handle.
Return values:
None

Definition at line 1385 of file stm32l4xx_hal_usart.c.

static void USART_DMATransmitCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART transmit process complete callback.

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

Definition at line 1290 of file stm32l4xx_hal_usart.c.

static void USART_DMATxHalfCplt ( DMA_HandleTypeDef *  hdma ) [static]

DMA USART transmit process half complete callback.

Parameters:
hdma: DMA handle.
Return values:
None

Definition at line 1325 of file stm32l4xx_hal_usart.c.

static HAL_StatusTypeDef USART_EndTransmit_IT ( USART_HandleTypeDef *  husart ) [static]

Wraps up transmission in non-blocking mode.

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

Definition at line 1652 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:
husart,:USART handle
Return values:
HALstatus

Definition at line 1675 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 1480 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:
husart,:USART handle.
Return values:
HALstatus

Definition at line 1604 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 1728 of file stm32l4xx_hal_usart.c.

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

Handle USART Communication Timeout.

Parameters:
husart,:USART handle.
Flag,:specifies the USART flag to check.
Status,:the Flag status (SET or RESET).
Timeout,:timeout duration.
Return values:
HALstatus

Definition at line 1417 of file stm32l4xx_hal_usart.c.