stm32f7xx_hal_usart.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef STM32F7xx_HAL_USART_H
22 #define STM32F7xx_HAL_USART_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32f7xx_hal_def.h"
30 
39 /* Exported types ------------------------------------------------------------*/
47 typedef struct
48 {
49  uint32_t BaudRate;
57  uint32_t WordLength;
60  uint32_t StopBits;
63  uint32_t Parity;
70  uint32_t Mode;
73  uint32_t CLKPolarity;
76  uint32_t CLKPhase;
79  uint32_t CLKLastBit;
84 
88 typedef enum
89 {
99 
103 typedef enum
104 {
112 
116 typedef struct __USART_HandleTypeDef
117 {
122  uint8_t *pTxBuffPtr;
124  uint16_t TxXferSize;
126  __IO uint16_t TxXferCount;
128  uint8_t *pRxBuffPtr;
130  uint16_t RxXferSize;
132  __IO uint16_t RxXferCount;
134  uint16_t Mask;
136  void (*RxISR)(struct __USART_HandleTypeDef *husart);
138  void (*TxISR)(struct __USART_HandleTypeDef *husart);
148  __IO uint32_t ErrorCode;
150 #if (USE_HAL_USART_REGISTER_CALLBACKS == 1)
151  void (* TxHalfCpltCallback)(struct __USART_HandleTypeDef *husart);
152  void (* TxCpltCallback)(struct __USART_HandleTypeDef *husart);
153  void (* RxHalfCpltCallback)(struct __USART_HandleTypeDef *husart);
154  void (* RxCpltCallback)(struct __USART_HandleTypeDef *husart);
155  void (* TxRxCpltCallback)(struct __USART_HandleTypeDef *husart);
156  void (* ErrorCallback)(struct __USART_HandleTypeDef *husart);
157  void (* AbortCpltCallback)(struct __USART_HandleTypeDef *husart);
159  void (* MspInitCallback)(struct __USART_HandleTypeDef *husart);
160  void (* MspDeInitCallback)(struct __USART_HandleTypeDef *husart);
161 #endif /* USE_HAL_USART_REGISTER_CALLBACKS */
162 
164 
165 #if (USE_HAL_USART_REGISTER_CALLBACKS == 1)
166 
169 typedef enum
170 {
171  HAL_USART_TX_HALFCOMPLETE_CB_ID = 0x00U,
172  HAL_USART_TX_COMPLETE_CB_ID = 0x01U,
173  HAL_USART_RX_HALFCOMPLETE_CB_ID = 0x02U,
174  HAL_USART_RX_COMPLETE_CB_ID = 0x03U,
175  HAL_USART_TX_RX_COMPLETE_CB_ID = 0x04U,
176  HAL_USART_ERROR_CB_ID = 0x05U,
177  HAL_USART_ABORT_COMPLETE_CB_ID = 0x06U,
179  HAL_USART_MSPINIT_CB_ID = 0x09U,
180  HAL_USART_MSPDEINIT_CB_ID = 0x0AU
182 } HAL_USART_CallbackIDTypeDef;
183 
187 typedef void (*pUSART_CallbackTypeDef)(USART_HandleTypeDef *husart);
189 #endif /* USE_HAL_USART_REGISTER_CALLBACKS */
190 
195 /* Exported constants --------------------------------------------------------*/
203 #define HAL_USART_ERROR_NONE ((uint32_t)0x00000000U)
204 #define HAL_USART_ERROR_PE ((uint32_t)0x00000001U)
205 #define HAL_USART_ERROR_NE ((uint32_t)0x00000002U)
206 #define HAL_USART_ERROR_FE ((uint32_t)0x00000004U)
207 #define HAL_USART_ERROR_ORE ((uint32_t)0x00000008U)
208 #define HAL_USART_ERROR_DMA ((uint32_t)0x00000010U)
209 #if (USE_HAL_USART_REGISTER_CALLBACKS == 1)
210 #define HAL_USART_ERROR_INVALID_CALLBACK ((uint32_t)0x00000040U)
211 #endif /* USE_HAL_USART_REGISTER_CALLBACKS */
212 #define HAL_USART_ERROR_RTO ((uint32_t)0x00000080U)
220 #define USART_STOPBITS_0_5 USART_CR2_STOP_0
221 #define USART_STOPBITS_1 0x00000000U
222 #define USART_STOPBITS_1_5 (USART_CR2_STOP_0 | USART_CR2_STOP_1)
223 #define USART_STOPBITS_2 USART_CR2_STOP_1
231 #define USART_PARITY_NONE 0x00000000U
232 #define USART_PARITY_EVEN USART_CR1_PCE
233 #define USART_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS)
241 #define USART_MODE_RX USART_CR1_RE
242 #define USART_MODE_TX USART_CR1_TE
243 #define USART_MODE_TX_RX (USART_CR1_TE |USART_CR1_RE)
251 #define USART_OVERSAMPLING_16 0x00000000U
252 #define USART_OVERSAMPLING_8 USART_CR1_OVER8
260 #define USART_CLOCK_DISABLE 0x00000000U
261 #define USART_CLOCK_ENABLE USART_CR2_CLKEN
269 #define USART_POLARITY_LOW 0x00000000U
270 #define USART_POLARITY_HIGH USART_CR2_CPOL
278 #define USART_PHASE_1EDGE 0x00000000U
279 #define USART_PHASE_2EDGE USART_CR2_CPHA
287 #define USART_LASTBIT_DISABLE 0x00000000U
288 #define USART_LASTBIT_ENABLE USART_CR2_LBCL
297 #define USART_RXDATA_FLUSH_REQUEST USART_RQR_RXFRQ
298 #define USART_TXDATA_FLUSH_REQUEST USART_RQR_TXFRQ
308 #define USART_FLAG_REACK USART_ISR_REACK
309 #define USART_FLAG_TEACK USART_ISR_TEACK
310 #define USART_FLAG_BUSY USART_ISR_BUSY
311 #define USART_FLAG_TXE USART_ISR_TXE
312 #define USART_FLAG_RTOF USART_ISR_RTOF
313 #define USART_FLAG_TC USART_ISR_TC
314 #define USART_FLAG_RXNE USART_ISR_RXNE
315 #define USART_FLAG_IDLE USART_ISR_IDLE
316 #define USART_FLAG_ORE USART_ISR_ORE
317 #define USART_FLAG_NE USART_ISR_NE
318 #define USART_FLAG_FE USART_ISR_FE
319 #define USART_FLAG_PE USART_ISR_PE
335 #define USART_IT_PE 0x0028U
336 #define USART_IT_TXE 0x0727U
337 #define USART_IT_TC 0x0626U
338 #define USART_IT_RXNE 0x0525U
339 #define USART_IT_IDLE 0x0424U
340 #define USART_IT_ERR 0x0060U
341 #define USART_IT_ORE 0x0300U
342 #define USART_IT_NE 0x0200U
343 #define USART_IT_FE 0x0100U
352 #define USART_CLEAR_PEF USART_ICR_PECF
353 #define USART_CLEAR_FEF USART_ICR_FECF
354 #define USART_CLEAR_NEF USART_ICR_NCF
355 #define USART_CLEAR_OREF USART_ICR_ORECF
356 #define USART_CLEAR_IDLEF USART_ICR_IDLECF
357 #define USART_CLEAR_TCF USART_ICR_TCCF
358 #define USART_CLEAR_RTOF USART_ICR_RTOCF
366 #define USART_IT_MASK 0x001FU
367 #define USART_CR_MASK 0x00E0U
368 #define USART_CR_POS 5U
369 #define USART_ISR_MASK 0x1F00U
370 #define USART_ISR_POS 8U
379 /* Exported macros -----------------------------------------------------------*/
380 
388 #if (USE_HAL_USART_REGISTER_CALLBACKS == 1)
389 #define __HAL_USART_RESET_HANDLE_STATE(__HANDLE__) do{ \
390  (__HANDLE__)->State = HAL_USART_STATE_RESET; \
391  (__HANDLE__)->MspInitCallback = NULL; \
392  (__HANDLE__)->MspDeInitCallback = NULL; \
393  } while(0U)
394 #else
395 #define __HAL_USART_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_USART_STATE_RESET)
396 #endif /* USE_HAL_USART_REGISTER_CALLBACKS */
397 
416 #define __HAL_USART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))
417 
431 #define __HAL_USART_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__))
432 
437 #define __HAL_USART_CLEAR_PEFLAG(__HANDLE__) __HAL_USART_CLEAR_FLAG((__HANDLE__), USART_CLEAR_PEF)
438 
443 #define __HAL_USART_CLEAR_FEFLAG(__HANDLE__) __HAL_USART_CLEAR_FLAG((__HANDLE__), USART_CLEAR_FEF)
444 
449 #define __HAL_USART_CLEAR_NEFLAG(__HANDLE__) __HAL_USART_CLEAR_FLAG((__HANDLE__), USART_CLEAR_NEF)
450 
455 #define __HAL_USART_CLEAR_OREFLAG(__HANDLE__) __HAL_USART_CLEAR_FLAG((__HANDLE__), USART_CLEAR_OREF)
456 
461 #define __HAL_USART_CLEAR_IDLEFLAG(__HANDLE__) __HAL_USART_CLEAR_FLAG((__HANDLE__), USART_CLEAR_IDLEF)
462 
463 
464 
477 #define __HAL_USART_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & USART_CR_MASK) >> USART_CR_POS) == 1U)? ((__HANDLE__)->Instance->CR1 |= ((uint32_t)1U << ((__INTERRUPT__) & USART_IT_MASK))): \
478  ((((__INTERRUPT__) & USART_CR_MASK) >> USART_CR_POS) == 2U)? ((__HANDLE__)->Instance->CR2 |= ((uint32_t)1U << ((__INTERRUPT__) & USART_IT_MASK))): \
479  ((__HANDLE__)->Instance->CR3 |= ((uint32_t)1U << ((__INTERRUPT__) & USART_IT_MASK))))
480 
493 #define __HAL_USART_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & USART_CR_MASK) >> USART_CR_POS) == 1U)? ((__HANDLE__)->Instance->CR1 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & USART_IT_MASK))): \
494  ((((__INTERRUPT__) & USART_CR_MASK) >> USART_CR_POS) == 2U)? ((__HANDLE__)->Instance->CR2 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & USART_IT_MASK))): \
495  ((__HANDLE__)->Instance->CR3 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & USART_IT_MASK))))
496 
497 
512 #define __HAL_USART_GET_IT(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->ISR\
513  & ((uint32_t)0x01U << (((__INTERRUPT__) & USART_ISR_MASK)>> USART_ISR_POS))) != 0U) ? SET : RESET)
514 
529 #define __HAL_USART_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((((((uint8_t)(__INTERRUPT__)) >> 0x05U) == 0x01U) ? (__HANDLE__)->Instance->CR1 : \
530  (((((uint8_t)(__INTERRUPT__)) >> 0x05U) == 0x02U) ? (__HANDLE__)->Instance->CR2 : \
531  (__HANDLE__)->Instance->CR3)) & (0x01U << (((uint16_t)(__INTERRUPT__)) & USART_IT_MASK))) != 0U) ? SET : RESET)
532 
533 
548 #define __HAL_USART_CLEAR_IT(__HANDLE__, __IT_CLEAR__) ((__HANDLE__)->Instance->ICR = (uint32_t)(__IT_CLEAR__))
549 
559 #define __HAL_USART_SEND_REQ(__HANDLE__, __REQ__) ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))
560 
565 #define __HAL_USART_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)
566 
571 #define __HAL_USART_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 &= ~USART_CR3_ONEBIT)
572 
577 #define __HAL_USART_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
578 
583 #define __HAL_USART_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)
584 
589 /* Private macros --------------------------------------------------------*/
599 #define USART_DIV_SAMPLING8(__PCLK__, __BAUD__) ((((__PCLK__)*2U) + ((__BAUD__)/2U)) / (__BAUD__))
600 
606 #define USART_GETCLOCKSOURCE(__HANDLE__, __CLOCKSOURCE__) \
607  do { \
608  if((__HANDLE__)->Instance == USART1) \
609  { \
610  switch(__HAL_RCC_GET_USART1_SOURCE()) \
611  { \
612  case RCC_USART1CLKSOURCE_PCLK2: \
613  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_PCLK2; \
614  break; \
615  case RCC_USART1CLKSOURCE_HSI: \
616  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_HSI; \
617  break; \
618  case RCC_USART1CLKSOURCE_SYSCLK: \
619  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_SYSCLK; \
620  break; \
621  case RCC_USART1CLKSOURCE_LSE: \
622  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_LSE; \
623  break; \
624  default: \
625  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_UNDEFINED; \
626  break; \
627  } \
628  } \
629  else if((__HANDLE__)->Instance == USART2) \
630  { \
631  switch(__HAL_RCC_GET_USART2_SOURCE()) \
632  { \
633  case RCC_USART2CLKSOURCE_PCLK1: \
634  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_PCLK1; \
635  break; \
636  case RCC_USART2CLKSOURCE_HSI: \
637  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_HSI; \
638  break; \
639  case RCC_USART2CLKSOURCE_SYSCLK: \
640  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_SYSCLK; \
641  break; \
642  case RCC_USART2CLKSOURCE_LSE: \
643  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_LSE; \
644  break; \
645  default: \
646  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_UNDEFINED; \
647  break; \
648  } \
649  } \
650  else if((__HANDLE__)->Instance == USART3) \
651  { \
652  switch(__HAL_RCC_GET_USART3_SOURCE()) \
653  { \
654  case RCC_USART3CLKSOURCE_PCLK1: \
655  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_PCLK1; \
656  break; \
657  case RCC_USART3CLKSOURCE_HSI: \
658  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_HSI; \
659  break; \
660  case RCC_USART3CLKSOURCE_SYSCLK: \
661  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_SYSCLK; \
662  break; \
663  case RCC_USART3CLKSOURCE_LSE: \
664  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_LSE; \
665  break; \
666  default: \
667  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_UNDEFINED; \
668  break; \
669  } \
670  } \
671  else if((__HANDLE__)->Instance == USART6) \
672  { \
673  switch(__HAL_RCC_GET_USART6_SOURCE()) \
674  { \
675  case RCC_USART6CLKSOURCE_PCLK2: \
676  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_PCLK2; \
677  break; \
678  case RCC_USART6CLKSOURCE_HSI: \
679  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_HSI; \
680  break; \
681  case RCC_USART6CLKSOURCE_SYSCLK: \
682  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_SYSCLK; \
683  break; \
684  case RCC_USART6CLKSOURCE_LSE: \
685  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_LSE; \
686  break; \
687  default: \
688  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_UNDEFINED; \
689  break; \
690  } \
691  } \
692  else \
693  { \
694  (__CLOCKSOURCE__) = USART_CLOCKSOURCE_UNDEFINED; \
695  } \
696  } while(0U)
697 
703 #define IS_USART_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) <= 27000000U)
704 
710 #define IS_USART_STOPBITS(__STOPBITS__) (((__STOPBITS__) == USART_STOPBITS_0_5) || \
711  ((__STOPBITS__) == USART_STOPBITS_1) || \
712  ((__STOPBITS__) == USART_STOPBITS_1_5) || \
713  ((__STOPBITS__) == USART_STOPBITS_2))
714 
720 #define IS_USART_PARITY(__PARITY__) (((__PARITY__) == USART_PARITY_NONE) || \
721  ((__PARITY__) == USART_PARITY_EVEN) || \
722  ((__PARITY__) == USART_PARITY_ODD))
723 
729 #define IS_USART_MODE(__MODE__) ((((__MODE__) & 0xFFFFFFF3U) == 0x00U) && ((__MODE__) != 0x00U))
730 
736 #define IS_USART_OVERSAMPLING(__SAMPLING__) (((__SAMPLING__) == USART_OVERSAMPLING_16) || \
737  ((__SAMPLING__) == USART_OVERSAMPLING_8))
738 
744 #define IS_USART_CLOCK(__CLOCK__) (((__CLOCK__) == USART_CLOCK_DISABLE) || \
745  ((__CLOCK__) == USART_CLOCK_ENABLE))
746 
752 #define IS_USART_POLARITY(__CPOL__) (((__CPOL__) == USART_POLARITY_LOW) || ((__CPOL__) == USART_POLARITY_HIGH))
753 
759 #define IS_USART_PHASE(__CPHA__) (((__CPHA__) == USART_PHASE_1EDGE) || ((__CPHA__) == USART_PHASE_2EDGE))
760 
766 #define IS_USART_LASTBIT(__LASTBIT__) (((__LASTBIT__) == USART_LASTBIT_DISABLE) || \
767  ((__LASTBIT__) == USART_LASTBIT_ENABLE))
768 
774 #define IS_USART_REQUEST_PARAMETER(__PARAM__) (((__PARAM__) == USART_RXDATA_FLUSH_REQUEST) || \
775  ((__PARAM__) == USART_TXDATA_FLUSH_REQUEST))
776 
781 /* Include USART HAL Extended module */
782 #include "stm32f7xx_hal_usart_ex.h"
783 
784 /* Exported functions --------------------------------------------------------*/
793 /* Initialization and de-initialization functions ****************************/
798 
799 /* Callbacks Register/UnRegister functions ***********************************/
800 #if (USE_HAL_USART_REGISTER_CALLBACKS == 1)
801 HAL_StatusTypeDef HAL_USART_RegisterCallback(USART_HandleTypeDef *husart, HAL_USART_CallbackIDTypeDef CallbackID,
802  pUSART_CallbackTypeDef pCallback);
803 HAL_StatusTypeDef HAL_USART_UnRegisterCallback(USART_HandleTypeDef *husart, HAL_USART_CallbackIDTypeDef CallbackID);
804 #endif /* USE_HAL_USART_REGISTER_CALLBACKS */
805 
814 /* IO operation functions *****************************************************/
815 HAL_StatusTypeDef HAL_USART_Transmit(USART_HandleTypeDef *husart, uint8_t *pTxData, uint16_t Size, uint32_t Timeout);
816 HAL_StatusTypeDef HAL_USART_Receive(USART_HandleTypeDef *husart, uint8_t *pRxData, uint16_t Size, uint32_t Timeout);
817 HAL_StatusTypeDef HAL_USART_TransmitReceive(USART_HandleTypeDef *husart, uint8_t *pTxData, uint8_t *pRxData,
818  uint16_t Size, uint32_t Timeout);
819 HAL_StatusTypeDef HAL_USART_Transmit_IT(USART_HandleTypeDef *husart, uint8_t *pTxData, uint16_t Size);
820 HAL_StatusTypeDef HAL_USART_Receive_IT(USART_HandleTypeDef *husart, uint8_t *pRxData, uint16_t Size);
821 HAL_StatusTypeDef HAL_USART_TransmitReceive_IT(USART_HandleTypeDef *husart, uint8_t *pTxData, uint8_t *pRxData,
822  uint16_t Size);
823 HAL_StatusTypeDef HAL_USART_Transmit_DMA(USART_HandleTypeDef *husart, uint8_t *pTxData, uint16_t Size);
824 HAL_StatusTypeDef HAL_USART_Receive_DMA(USART_HandleTypeDef *husart, uint8_t *pRxData, uint16_t Size);
825 HAL_StatusTypeDef HAL_USART_TransmitReceive_DMA(USART_HandleTypeDef *husart, uint8_t *pTxData, uint8_t *pRxData,
826  uint16_t Size);
830 /* Transfer Abort functions */
833 
842 
851 /* Peripheral State and Error functions ***************************************/
853 uint32_t HAL_USART_GetError(USART_HandleTypeDef *husart);
854 
871 #ifdef __cplusplus
872 }
873 #endif
874 
875 #endif /* STM32F7xx_HAL_USART_H */
876 
877 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
__USART_HandleTypeDef
USART handle Structure definition.
Definition: stm32f7xx_hal_usart.h:116
__USART_HandleTypeDef::TxISR
void(* TxISR)(struct __USART_HandleTypeDef *husart)
Definition: stm32f7xx_hal_usart.h:138
HAL_USART_AbortCpltCallback
void HAL_USART_AbortCpltCallback(USART_HandleTypeDef *husart)
__IO
#define __IO
Definition: imxrt1050/imxrt1050-evkb/CMSIS/core_cm7.h:237
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:40
USART_TypeDef
Universal Synchronous Asynchronous Receiver Transmitter.
Definition: stm32f407xx.h:758
HAL_USART_STATE_TIMEOUT
@ HAL_USART_STATE_TIMEOUT
Definition: stm32f7xx_hal_usart.h:96
__DMA_HandleTypeDef
DMA handle Structure definition.
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:139
USART_CLOCKSOURCE_PCLK1
@ USART_CLOCKSOURCE_PCLK1
Definition: stm32f7xx_hal_usart.h:105
__USART_HandleTypeDef::Mask
uint16_t Mask
Definition: stm32f7xx_hal_usart.h:134
HAL_USART_IRQHandler
void HAL_USART_IRQHandler(USART_HandleTypeDef *husart)
HAL_USART_ErrorCallback
void HAL_USART_ErrorCallback(USART_HandleTypeDef *husart)
HAL_USART_Receive_DMA
HAL_StatusTypeDef HAL_USART_Receive_DMA(USART_HandleTypeDef *husart, uint8_t *pRxData, uint16_t Size)
USART_InitTypeDef::CLKPhase
uint32_t CLKPhase
Definition: stm32f7xx_hal_usart.h:76
USART_InitTypeDef::CLKPolarity
uint32_t CLKPolarity
Definition: stm32f7xx_hal_usart.h:73
__USART_HandleTypeDef::ErrorCode
__IO uint32_t ErrorCode
Definition: stm32f7xx_hal_usart.h:148
HAL_USART_RxCpltCallback
void HAL_USART_RxCpltCallback(USART_HandleTypeDef *husart)
HAL_USART_STATE_ERROR
@ HAL_USART_STATE_ERROR
Definition: stm32f7xx_hal_usart.h:97
HAL_LockTypeDef
HAL_LockTypeDef
HAL Lock structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:51
HAL_USART_MspDeInit
void HAL_USART_MspDeInit(USART_HandleTypeDef *husart)
HAL_USART_MspInit
void HAL_USART_MspInit(USART_HandleTypeDef *husart)
__USART_HandleTypeDef::pRxBuffPtr
uint8_t * pRxBuffPtr
Definition: stm32f7xx_hal_usart.h:128
__USART_HandleTypeDef::RxISR
void(* RxISR)(struct __USART_HandleTypeDef *husart)
Definition: stm32f7xx_hal_usart.h:136
USART_InitTypeDef::Parity
uint32_t Parity
Definition: stm32f7xx_hal_usart.h:63
__USART_HandleTypeDef::TxXferSize
uint16_t TxXferSize
Definition: stm32f7xx_hal_usart.h:124
HAL_USART_DeInit
HAL_StatusTypeDef HAL_USART_DeInit(USART_HandleTypeDef *husart)
HAL_USART_STATE_BUSY_TX_RX
@ HAL_USART_STATE_BUSY_TX_RX
Definition: stm32f7xx_hal_usart.h:95
USART_InitTypeDef::StopBits
uint32_t StopBits
Definition: stm32f7xx_hal_usart.h:60
HAL_USART_DMAResume
HAL_StatusTypeDef HAL_USART_DMAResume(USART_HandleTypeDef *husart)
HAL_USART_GetState
HAL_USART_StateTypeDef HAL_USART_GetState(USART_HandleTypeDef *husart)
HAL_USART_STATE_BUSY_TX
@ HAL_USART_STATE_BUSY_TX
Definition: stm32f7xx_hal_usart.h:93
USART_CLOCKSOURCE_HSI
@ USART_CLOCKSOURCE_HSI
Definition: stm32f7xx_hal_usart.h:107
HAL_USART_TxRxCpltCallback
void HAL_USART_TxRxCpltCallback(USART_HandleTypeDef *husart)
HAL_USART_TransmitReceive_IT
HAL_StatusTypeDef HAL_USART_TransmitReceive_IT(USART_HandleTypeDef *husart, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size)
__USART_HandleTypeDef::hdmatx
DMA_HandleTypeDef * hdmatx
Definition: stm32f7xx_hal_usart.h:140
HAL_USART_Transmit_IT
HAL_StatusTypeDef HAL_USART_Transmit_IT(USART_HandleTypeDef *husart, uint8_t *pTxData, uint16_t Size)
HAL_USART_STATE_READY
@ HAL_USART_STATE_READY
Definition: stm32f7xx_hal_usart.h:91
HAL_USART_STATE_BUSY_RX
@ HAL_USART_STATE_BUSY_RX
Definition: stm32f7xx_hal_usart.h:94
HAL_USART_Receive_IT
HAL_StatusTypeDef HAL_USART_Receive_IT(USART_HandleTypeDef *husart, uint8_t *pRxData, uint16_t Size)
HAL_USART_TransmitReceive_DMA
HAL_StatusTypeDef HAL_USART_TransmitReceive_DMA(USART_HandleTypeDef *husart, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size)
__USART_HandleTypeDef::State
__IO HAL_USART_StateTypeDef State
Definition: stm32f7xx_hal_usart.h:146
USART_InitTypeDef::Mode
uint32_t Mode
Definition: stm32f7xx_hal_usart.h:70
__USART_HandleTypeDef::pTxBuffPtr
uint8_t * pTxBuffPtr
Definition: stm32f7xx_hal_usart.h:122
__USART_HandleTypeDef::RxXferCount
__IO uint16_t RxXferCount
Definition: stm32f7xx_hal_usart.h:132
USART_CLOCKSOURCE_UNDEFINED
@ USART_CLOCKSOURCE_UNDEFINED
Definition: stm32f7xx_hal_usart.h:110
USART_InitTypeDef::CLKLastBit
uint32_t CLKLastBit
Definition: stm32f7xx_hal_usart.h:79
USART_InitTypeDef::BaudRate
uint32_t BaudRate
Definition: stm32f7xx_hal_usart.h:49
HAL_USART_Abort
HAL_StatusTypeDef HAL_USART_Abort(USART_HandleTypeDef *husart)
__USART_HandleTypeDef::Instance
USART_TypeDef * Instance
Definition: stm32f7xx_hal_usart.h:118
HAL_USART_DMAPause
HAL_StatusTypeDef HAL_USART_DMAPause(USART_HandleTypeDef *husart)
__USART_HandleTypeDef::Lock
HAL_LockTypeDef Lock
Definition: stm32f7xx_hal_usart.h:144
USART_HandleTypeDef
struct __USART_HandleTypeDef USART_HandleTypeDef
USART handle Structure definition.
HAL_USART_Transmit_DMA
HAL_StatusTypeDef HAL_USART_Transmit_DMA(USART_HandleTypeDef *husart, uint8_t *pTxData, uint16_t Size)
stm32f7xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
USART_ClockSourceTypeDef
USART_ClockSourceTypeDef
USART clock sources definitions.
Definition: stm32f7xx_hal_usart.h:103
__USART_HandleTypeDef::RxXferSize
uint16_t RxXferSize
Definition: stm32f7xx_hal_usart.h:130
HAL_USART_TxHalfCpltCallback
void HAL_USART_TxHalfCpltCallback(USART_HandleTypeDef *husart)
HAL_USART_Init
HAL_StatusTypeDef HAL_USART_Init(USART_HandleTypeDef *husart)
HAL_USART_Transmit
HAL_StatusTypeDef HAL_USART_Transmit(USART_HandleTypeDef *husart, uint8_t *pTxData, uint16_t Size, uint32_t Timeout)
HAL_USART_TxCpltCallback
void HAL_USART_TxCpltCallback(USART_HandleTypeDef *husart)
__USART_HandleTypeDef::Init
USART_InitTypeDef Init
Definition: stm32f7xx_hal_usart.h:120
stm32f7xx_hal_usart_ex.h
Header file of USART HAL Extended module.
USART_CLOCKSOURCE_PCLK2
@ USART_CLOCKSOURCE_PCLK2
Definition: stm32f7xx_hal_usart.h:106
HAL_USART_STATE_RESET
@ HAL_USART_STATE_RESET
Definition: stm32f7xx_hal_usart.h:90
HAL_USART_StateTypeDef
HAL_USART_StateTypeDef
HAL USART State structures definition.
Definition: stm32f7xx_hal_usart.h:88
HAL_USART_TransmitReceive
HAL_StatusTypeDef HAL_USART_TransmitReceive(USART_HandleTypeDef *husart, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout)
USART_CLOCKSOURCE_LSE
@ USART_CLOCKSOURCE_LSE
Definition: stm32f7xx_hal_usart.h:109
HAL_USART_DMAStop
HAL_StatusTypeDef HAL_USART_DMAStop(USART_HandleTypeDef *husart)
HAL_USART_Receive
HAL_StatusTypeDef HAL_USART_Receive(USART_HandleTypeDef *husart, uint8_t *pRxData, uint16_t Size, uint32_t Timeout)
USART_InitTypeDef
USART Init Structure definition.
Definition: stm32f7xx_hal_usart.h:47
HAL_USART_Abort_IT
HAL_StatusTypeDef HAL_USART_Abort_IT(USART_HandleTypeDef *husart)
HAL_USART_RxHalfCpltCallback
void HAL_USART_RxHalfCpltCallback(USART_HandleTypeDef *husart)
USART_CLOCKSOURCE_SYSCLK
@ USART_CLOCKSOURCE_SYSCLK
Definition: stm32f7xx_hal_usart.h:108
USART_InitTypeDef::WordLength
uint32_t WordLength
Definition: stm32f7xx_hal_usart.h:57
HAL_USART_STATE_BUSY
@ HAL_USART_STATE_BUSY
Definition: stm32f7xx_hal_usart.h:92
HAL_USART_GetError
uint32_t HAL_USART_GetError(USART_HandleTypeDef *husart)
__USART_HandleTypeDef::TxXferCount
__IO uint16_t TxXferCount
Definition: stm32f7xx_hal_usart.h:126
__USART_HandleTypeDef::hdmarx
DMA_HandleTypeDef * hdmarx
Definition: stm32f7xx_hal_usart.h:142


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:53