1 /** 2 ****************************************************************************** 3 * @file stm32mp1xx_hal_spi_ex.h 4 * @author MCD Application Team 5 * @brief Header file of SPI HAL Extended module. 6 ****************************************************************************** 7 * @attention 8 * 9 * Copyright (c) 2019 STMicroelectronics. 10 * All rights reserved. 11 * 12 * This software is licensed under terms that can be found in the LICENSE file 13 * in the root directory of this software component. 14 * If no LICENSE file comes with this software, it is provided AS-IS. 15 * 16 ****************************************************************************** 17 */ 18 19 /* Define to prevent recursive inclusion -------------------------------------*/ 20 #ifndef STM32MP1xx_HAL_SPI_EX_H 21 #define STM32MP1xx_HAL_SPI_EX_H 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /* Includes ------------------------------------------------------------------*/ 28 #include "stm32mp1xx_hal_def.h" 29 30 /** @addtogroup STM32MP1xx_HAL_Driver 31 * @{ 32 */ 33 34 /** @addtogroup SPIEx 35 * @{ 36 */ 37 38 /* Exported types ------------------------------------------------------------*/ 39 /** @defgroup SPIEx_Exported_Types SPIEx Exported Types 40 * @{ 41 */ 42 43 /** 44 * @} 45 */ 46 47 /* Exported constants --------------------------------------------------------*/ 48 /** @defgroup SPIEx_Exported_Constants SPIEx Exported Constants 49 * @{ 50 */ 51 52 /** 53 * @} 54 */ 55 56 /* Exported macros -----------------------------------------------------------*/ 57 /** @defgroup SPIEx_Exported_Macros SPIEx Extended Exported Macros 58 * @{ 59 */ 60 61 /** 62 * @} 63 */ 64 65 /* Exported functions --------------------------------------------------------*/ 66 /** @addtogroup SPIEx_Exported_Functions 67 * @{ 68 */ 69 70 /* Initialization and de-initialization functions ****************************/ 71 /* IO operation functions *****************************************************/ 72 /** @addtogroup SPIEx_Exported_Functions_Group1 73 * @{ 74 */ 75 HAL_StatusTypeDef HAL_SPIEx_FlushRxFifo(const SPI_HandleTypeDef *hspi); 76 HAL_StatusTypeDef HAL_SPIEx_EnableLockConfiguration(SPI_HandleTypeDef *hspi); 77 HAL_StatusTypeDef HAL_SPIEx_ConfigureUnderrun(SPI_HandleTypeDef *hspi, uint32_t UnderrunDetection, 78 uint32_t UnderrunBehaviour); 79 /** 80 * @} 81 */ 82 /** 83 * @} 84 */ 85 86 /** 87 * @} 88 */ 89 90 /** 91 * @} 92 */ 93 94 95 #ifdef __cplusplus 96 } 97 #endif 98 99 #endif /* STM32MP1xx_HAL_SPI_EX_H */ 100