stm32f3xx_hal_usart_ex.c 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /**
  2. ******************************************************************************
  3. * @file stm32f3xx_hal_usart_ex.c
  4. * @author MCD Application Team
  5. * @brief Extended USART HAL module driver.
  6. * This file provides firmware functions to manage the following extended
  7. * functionalities of the Universal Synchronous Receiver Transmitter Peripheral (USART).
  8. * + Peripheral Control functions
  9. *
  10. *
  11. ******************************************************************************
  12. * @attention
  13. *
  14. * Copyright (c) 2016 STMicroelectronics.
  15. * All rights reserved.
  16. *
  17. * This software is licensed under terms that can be found in the LICENSE file
  18. * in the root directory of this software component.
  19. * If no LICENSE file comes with this software, it is provided AS-IS.
  20. *
  21. ******************************************************************************
  22. @verbatim
  23. ==============================================================================
  24. ##### USART peripheral extended features #####
  25. ==============================================================================
  26. (#) FIFO mode enabling/disabling and RX/TX FIFO threshold programming.
  27. -@- When USART operates in FIFO mode, FIFO mode must be enabled prior
  28. starting RX/TX transfers. Also RX/TX FIFO thresholds must be
  29. configured prior starting RX/TX transfers.
  30. (#) Slave mode enabling/disabling and NSS pin configuration.
  31. -@- When USART operates in Slave mode, Slave mode must be enabled prior
  32. starting RX/TX transfers.
  33. @endverbatim
  34. ******************************************************************************
  35. */
  36. /* Includes ------------------------------------------------------------------*/
  37. #include "stm32f3xx_hal.h"
  38. /** @addtogroup STM32F3xx_HAL_Driver
  39. * @{
  40. */
  41. /** @defgroup USARTEx USARTEx
  42. * @brief USART Extended HAL module driver
  43. * @{
  44. */
  45. #ifdef HAL_USART_MODULE_ENABLED
  46. /* Private typedef -----------------------------------------------------------*/
  47. /* Private define ------------------------------------------------------------*/
  48. /* Private macros ------------------------------------------------------------*/
  49. /* Private variables ---------------------------------------------------------*/
  50. /* Private function prototypes -----------------------------------------------*/
  51. /* Exported functions --------------------------------------------------------*/
  52. /** @defgroup USARTEx_Exported_Functions USARTEx Exported Functions
  53. * @{
  54. */
  55. /** @defgroup USARTEx_Exported_Functions_Group1 IO operation functions
  56. * @brief Extended USART Transmit/Receive functions
  57. *
  58. @verbatim
  59. ===============================================================================
  60. ##### IO operation functions #####
  61. ===============================================================================
  62. This subsection provides a set of FIFO mode related callback functions.
  63. (#) TX/RX Fifos Callbacks:
  64. (+) HAL_USARTEx_RxFifoFullCallback()
  65. (+) HAL_USARTEx_TxFifoEmptyCallback()
  66. @endverbatim
  67. * @{
  68. */
  69. /**
  70. * @}
  71. */
  72. /** @defgroup USARTEx_Exported_Functions_Group2 Peripheral Control functions
  73. * @brief Extended Peripheral Control functions
  74. *
  75. @verbatim
  76. ===============================================================================
  77. ##### Peripheral Control functions #####
  78. ===============================================================================
  79. [..] This section provides the following functions:
  80. (+) HAL_USARTEx_EnableSPISlaveMode() API enables the SPI slave mode
  81. (+) HAL_USARTEx_DisableSPISlaveMode() API disables the SPI slave mode
  82. (+) HAL_USARTEx_ConfigNSS API configures the Slave Select input pin (NSS)
  83. (+) HAL_USARTEx_EnableFifoMode() API enables the FIFO mode
  84. (+) HAL_USARTEx_DisableFifoMode() API disables the FIFO mode
  85. (+) HAL_USARTEx_SetTxFifoThreshold() API sets the TX FIFO threshold
  86. (+) HAL_USARTEx_SetRxFifoThreshold() API sets the RX FIFO threshold
  87. @endverbatim
  88. * @{
  89. */
  90. /**
  91. * @}
  92. */
  93. /**
  94. * @}
  95. */
  96. /** @addtogroup USARTEx_Private_Functions
  97. * @{
  98. */
  99. /**
  100. * @}
  101. */
  102. #endif /* HAL_USART_MODULE_ENABLED */
  103. /**
  104. * @}
  105. */
  106. /**
  107. * @}
  108. */