STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_uart_ex.c File Reference

Extended UART HAL module driver. This file provides firmware functions to manage the following extended functionalities of the Universal Asynchronous Receiver Transmitter Peripheral (UART). More...

Go to the source code of this file.

Functions

static void UARTEx_Wakeup_AddressConfig (UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelection)
 Initialize the UART wake-up from stop mode parameters when triggered by address detection. More...
 
static void UARTEx_SetNbDataToProcess (UART_HandleTypeDef *huart)
 Calculate the number of data to process in RX/TX ISR. More...
 
HAL_StatusTypeDef HAL_RS485Ex_Init (UART_HandleTypeDef *huart, uint32_t Polarity, uint32_t AssertionTime, uint32_t DeassertionTime)
 Initialize the RS485 Driver enable feature according to the specified parameters in the UART_InitTypeDef and creates the associated handle. More...
 
void HAL_UARTEx_WakeupCallback (UART_HandleTypeDef *huart)
 UART wakeup from Stop mode callback. More...
 
void HAL_UARTEx_RxFifoFullCallback (UART_HandleTypeDef *huart)
 UART RX Fifo full callback. More...
 
void HAL_UARTEx_TxFifoEmptyCallback (UART_HandleTypeDef *huart)
 UART TX Fifo empty callback. More...
 
HAL_StatusTypeDef HAL_UARTEx_EnableClockStopMode (UART_HandleTypeDef *huart)
 Keep UART Clock enabled when in Stop Mode. More...
 
HAL_StatusTypeDef HAL_UARTEx_DisableClockStopMode (UART_HandleTypeDef *huart)
 Disable UART Clock when in Stop Mode. More...
 
HAL_StatusTypeDef HAL_MultiProcessorEx_AddressLength_Set (UART_HandleTypeDef *huart, uint32_t AddressLength)
 By default in multiprocessor mode, when the wake up method is set to address mark, the UART handles only 4-bit long addresses detection; this API allows to enable longer addresses detection (6-, 7- or 8-bit long). More...
 
HAL_StatusTypeDef HAL_UARTEx_StopModeWakeUpSourceConfig (UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelection)
 Set Wakeup from Stop mode interrupt flag selection. More...
 
HAL_StatusTypeDef HAL_UARTEx_EnableStopMode (UART_HandleTypeDef *huart)
 Enable UART Stop Mode. More...
 
HAL_StatusTypeDef HAL_UARTEx_DisableStopMode (UART_HandleTypeDef *huart)
 Disable UART Stop Mode. More...
 
HAL_StatusTypeDef HAL_UARTEx_EnableFifoMode (UART_HandleTypeDef *huart)
 Enable the FIFO mode. More...
 
HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode (UART_HandleTypeDef *huart)
 Disable the FIFO mode. More...
 
HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold (UART_HandleTypeDef *huart, uint32_t Threshold)
 Set the TXFIFO threshold. More...
 
HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold (UART_HandleTypeDef *huart, uint32_t Threshold)
 Set the RXFIFO threshold. More...
 

Detailed Description

Extended UART HAL module driver. This file provides firmware functions to manage the following extended functionalities of the Universal Asynchronous Receiver Transmitter Peripheral (UART).

Author
MCD Application Team
  • Initialization and de-initialization functions
  • Peripheral Control functions
==============================================================================
             ##### UART peripheral extended features  #####
==============================================================================

  (#) Declare a UART_HandleTypeDef handle structure.

  (#) For the UART RS485 Driver Enable mode, initialize the UART registers
      by calling the HAL_RS485Ex_Init() API.

  (#) FIFO mode enabling/disabling and RX/TX FIFO threshold programming.

      -@- When UART operates in FIFO mode, FIFO mode must be enabled prior
          starting RX/TX transfers. Also RX/TX FIFO thresholds must be
          configured prior starting RX/TX transfers.
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_uart_ex.c.