RTEMS 6.1-rc1
Macros | Functions
stm32h7xx_hal_usart_ex.h File Reference

Header file of USART HAL Extended module. More...

#include "stm32h7xx_hal_def.h"

Go to the source code of this file.

Macros

#define USART_WORDLENGTH_7B   (USART_CR1_M1)
 
#define USART_WORDLENGTH_8B   (0x00000000U)
 
#define USART_WORDLENGTH_9B   (USART_CR1_M0)
 
#define USART_NSS_HARD   0x00000000U
 
#define USART_NSS_SOFT   USART_CR2_DIS_NSS
 
#define USART_SLAVEMODE_DISABLE   0x00000000U
 
#define USART_SLAVEMODE_ENABLE   USART_CR2_SLVEN
 
#define USART_FIFOMODE_DISABLE   0x00000000U
 
#define USART_FIFOMODE_ENABLE   USART_CR1_FIFOEN
 
#define USART_TXFIFO_THRESHOLD_1_8   0x00000000U
 
#define USART_TXFIFO_THRESHOLD_1_4   USART_CR3_TXFTCFG_0
 
#define USART_TXFIFO_THRESHOLD_1_2   USART_CR3_TXFTCFG_1
 
#define USART_TXFIFO_THRESHOLD_3_4   (USART_CR3_TXFTCFG_0|USART_CR3_TXFTCFG_1)
 
#define USART_TXFIFO_THRESHOLD_7_8   USART_CR3_TXFTCFG_2
 
#define USART_TXFIFO_THRESHOLD_8_8   (USART_CR3_TXFTCFG_2|USART_CR3_TXFTCFG_0)
 
#define USART_RXFIFO_THRESHOLD_1_8   0x00000000U
 
#define USART_RXFIFO_THRESHOLD_1_4   USART_CR3_RXFTCFG_0
 
#define USART_RXFIFO_THRESHOLD_1_2   USART_CR3_RXFTCFG_1
 
#define USART_RXFIFO_THRESHOLD_3_4   (USART_CR3_RXFTCFG_0|USART_CR3_RXFTCFG_1)
 
#define USART_RXFIFO_THRESHOLD_7_8   USART_CR3_RXFTCFG_2
 
#define USART_RXFIFO_THRESHOLD_8_8   (USART_CR3_RXFTCFG_2|USART_CR3_RXFTCFG_0)
 
#define USART_MASK_COMPUTATION(__HANDLE__)
 Compute the USART mask to apply to retrieve the received data according to the word length and to the parity bits activation. More...
 
#define IS_USART_WORD_LENGTH(__LENGTH__)
 Ensure that USART frame length is valid. More...
 
#define IS_USART_NSS(__NSS__)
 Ensure that USART Negative Slave Select (NSS) pin management is valid. More...
 
#define IS_USART_SLAVEMODE(__STATE__)
 Ensure that USART Slave Mode is valid. More...
 
#define IS_USART_FIFO_MODE_STATE(__STATE__)
 Ensure that USART FIFO mode is valid. More...
 
#define IS_USART_TXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that USART TXFIFO threshold level is valid. More...
 
#define IS_USART_RXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that USART RXFIFO threshold level is valid. More...
 

Functions

void HAL_USARTEx_RxFifoFullCallback (USART_HandleTypeDef *husart)
 
void HAL_USARTEx_TxFifoEmptyCallback (USART_HandleTypeDef *husart)
 
HAL_StatusTypeDef HAL_USARTEx_EnableSlaveMode (USART_HandleTypeDef *husart)
 
HAL_StatusTypeDef HAL_USARTEx_DisableSlaveMode (USART_HandleTypeDef *husart)
 
HAL_StatusTypeDef HAL_USARTEx_ConfigNSS (USART_HandleTypeDef *husart, uint32_t NSSConfig)
 
HAL_StatusTypeDef HAL_USARTEx_EnableFifoMode (USART_HandleTypeDef *husart)
 
HAL_StatusTypeDef HAL_USARTEx_DisableFifoMode (USART_HandleTypeDef *husart)
 
HAL_StatusTypeDef HAL_USARTEx_SetTxFifoThreshold (USART_HandleTypeDef *husart, uint32_t Threshold)
 
HAL_StatusTypeDef HAL_USARTEx_SetRxFifoThreshold (USART_HandleTypeDef *husart, uint32_t Threshold)
 

Detailed Description

Header file of USART HAL Extended module.

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.