STM32L486xx HAL User Manual
Data Structures | Defines | Functions
stm32l4xx_hal_uart_ex.h File Reference

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

#include "stm32l4xx_hal_def.h"

Go to the source code of this file.

Data Structures

struct  UART_WakeUpTypeDef
 UART wake up from stop mode parameters. More...

Defines

#define UART_WORDLENGTH_7B   USART_CR1_M1
#define UART_WORDLENGTH_8B   0x00000000U
#define UART_WORDLENGTH_9B   USART_CR1_M0
#define UART_ADDRESS_DETECT_4B   0x00000000U
#define UART_ADDRESS_DETECT_7B   USART_CR2_ADDM7
#define UART_GETCLOCKSOURCE(__HANDLE__, __CLOCKSOURCE__)
 Report the UART clock source.
#define UART_MASK_COMPUTATION(__HANDLE__)
 Report the UART mask to apply to retrieve the received data according to the word length and to the parity bits activation.
#define IS_UART_WORD_LENGTH(__LENGTH__)
 Ensure that UART frame length is valid.
#define IS_UART_ADDRESSLENGTH_DETECT(__ADDRESS__)
 Ensure that UART wake-up address length is valid.

Functions

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.
__weak void HAL_UARTEx_WakeupCallback (UART_HandleTypeDef *huart)
 UART wakeup from Stop mode callback.
HAL_StatusTypeDef HAL_UARTEx_StopModeWakeUpSourceConfig (UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelection)
 Set Wakeup from Stop mode interrupt flag selection.
HAL_StatusTypeDef HAL_UARTEx_EnableStopMode (UART_HandleTypeDef *huart)
 Enable UART Stop Mode.
HAL_StatusTypeDef HAL_UARTEx_DisableStopMode (UART_HandleTypeDef *huart)
 Disable UART Stop Mode.
HAL_StatusTypeDef HAL_UARTEx_EnableClockStopMode (UART_HandleTypeDef *huart)
 Keep UART Clock enabled when in Stop Mode.
HAL_StatusTypeDef HAL_UARTEx_DisableClockStopMode (UART_HandleTypeDef *huart)
 Disable UART Clock when in Stop Mode.
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).

Detailed Description

Header file of UART HAL Extended module.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32l4xx_hal_uart_ex.h.