STM32H735xx HAL User Manual
Defines | Functions
stm32h7xx_hal_usart_ex.c File Reference

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

#include "stm32h7xx_hal.h"

Go to the source code of this file.

Defines

#define RX_FIFO_DEPTH   16U
#define TX_FIFO_DEPTH   16U

Functions

static void USARTEx_SetNbDataToProcess (USART_HandleTypeDef *husart)
 Calculate the number of data to process in RX/TX ISR.
__weak void HAL_USARTEx_RxFifoFullCallback (USART_HandleTypeDef *husart)
 USART RX Fifo full callback.
__weak void HAL_USARTEx_TxFifoEmptyCallback (USART_HandleTypeDef *husart)
 USART TX Fifo empty callback.
HAL_StatusTypeDef HAL_USARTEx_EnableSlaveMode (USART_HandleTypeDef *husart)
 Enable the SPI slave mode.
HAL_StatusTypeDef HAL_USARTEx_DisableSlaveMode (USART_HandleTypeDef *husart)
 Disable the SPI slave mode.
HAL_StatusTypeDef HAL_USARTEx_ConfigNSS (USART_HandleTypeDef *husart, uint32_t NSSConfig)
 Configure the Slave Select input pin (NSS).
HAL_StatusTypeDef HAL_USARTEx_EnableFifoMode (USART_HandleTypeDef *husart)
 Enable the FIFO mode.
HAL_StatusTypeDef HAL_USARTEx_DisableFifoMode (USART_HandleTypeDef *husart)
 Disable the FIFO mode.
HAL_StatusTypeDef HAL_USARTEx_SetTxFifoThreshold (USART_HandleTypeDef *husart, uint32_t Threshold)
 Set the TXFIFO threshold.
HAL_StatusTypeDef HAL_USARTEx_SetRxFifoThreshold (USART_HandleTypeDef *husart, uint32_t Threshold)
 Set the RXFIFO threshold.

Detailed Description

Extended USART HAL module driver. This file provides firmware functions to manage the following extended functionalities of the Universal Synchronous Receiver Transmitter Peripheral (USART). + Peripheral Control functions.

Author:
MCD Application Team
Attention:

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

  ==============================================================================
               ##### USART peripheral extended features  #####
  ==============================================================================

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

        -@- When USART 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.

    (#) Slave mode enabling/disabling and NSS pin configuration.

        -@- When USART operates in Slave mode, Slave mode must be enabled prior
            starting RX/TX transfers.

  

Definition in file stm32h7xx_hal_usart_ex.c.