STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
Eclipse_WS2
STM32F769IDiscovery
HAL_Driver
Inc
stm32f7xx_hal_usart_ex.h
Go to the documentation of this file.
1
38
/* Define to prevent recursive inclusion -------------------------------------*/
39
#ifndef __STM32F7xx_HAL_USART_EX_H
40
#define __STM32F7xx_HAL_USART_EX_H
41
42
#ifdef __cplusplus
43
extern
"C"
{
44
#endif
45
46
/* Includes ------------------------------------------------------------------*/
47
#include "
stm32f7xx_hal_def.h
"
48
57
/* Exported types ------------------------------------------------------------*/
58
/* Exported constants --------------------------------------------------------*/
66
#define USART_WORDLENGTH_7B ((uint32_t)USART_CR1_M_1)
67
#define USART_WORDLENGTH_8B ((uint32_t)0x00000000U)
68
#define USART_WORDLENGTH_9B ((uint32_t)USART_CR1_M_0)
69
77
/* Exported functions --------------------------------------------------------*/
78
79
/* Private macros ------------------------------------------------------------*/
93
#define __HAL_USART_MASK_COMPUTATION(__HANDLE__) \
94
do { \
95
if ((__HANDLE__)->Init.WordLength == USART_WORDLENGTH_9B) \
96
{ \
97
if ((__HANDLE__)->Init.Parity == USART_PARITY_NONE) \
98
{ \
99
(__HANDLE__)->Mask = 0x01FF ; \
100
} \
101
else \
102
{ \
103
(__HANDLE__)->Mask = 0x00FF ; \
104
} \
105
} \
106
else if ((__HANDLE__)->Init.WordLength == USART_WORDLENGTH_8B) \
107
{ \
108
if ((__HANDLE__)->Init.Parity == USART_PARITY_NONE) \
109
{ \
110
(__HANDLE__)->Mask = 0x00FF ; \
111
} \
112
else \
113
{ \
114
(__HANDLE__)->Mask = 0x007F ; \
115
} \
116
} \
117
else if ((__HANDLE__)->Init.WordLength == USART_WORDLENGTH_7B) \
118
{ \
119
if ((__HANDLE__)->Init.Parity == USART_PARITY_NONE) \
120
{ \
121
(__HANDLE__)->Mask = 0x007F ; \
122
} \
123
else \
124
{ \
125
(__HANDLE__)->Mask = 0x003F ; \
126
} \
127
} \
128
} while(0)
129
130
#define IS_USART_WORD_LENGTH(__LENGTH__) (((__LENGTH__) == USART_WORDLENGTH_7B) || \
131
((__LENGTH__) == USART_WORDLENGTH_8B) || \
132
((__LENGTH__) == USART_WORDLENGTH_9B))
133
137
/* Exported functions --------------------------------------------------------*/
138
/* Initialization/de-initialization methods **********************************/
139
/* IO operation methods *******************************************************/
140
/* Peripheral Control methods ************************************************/
141
/* Peripheral State methods **************************************************/
142
143
152
#ifdef __cplusplus
153
}
154
#endif
155
156
#endif
/* __STM32F7xx_HAL_USART_EX_H */
157
158
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
stm32f7xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
Generated by
1.8.11