训练营PLSR题目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

137 lines
3.6 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_hal_fmpsmbus_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of FMPSMBUS HAL Extended module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2016 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. /* Define to prevent recursive inclusion -------------------------------------*/
  19. #ifndef STM32F4xx_HAL_FMPSMBUS_EX_H
  20. #define STM32F4xx_HAL_FMPSMBUS_EX_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #if defined(FMPI2C_CR1_PE)
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32f4xx_hal_def.h"
  27. /** @addtogroup STM32F4xx_HAL_Driver
  28. * @{
  29. */
  30. /** @addtogroup FMPSMBUSEx
  31. * @{
  32. */
  33. /* Exported types ------------------------------------------------------------*/
  34. /* Exported constants --------------------------------------------------------*/
  35. /** @defgroup FMPSMBUSEx_Exported_Constants FMPSMBUS Extended Exported Constants
  36. * @{
  37. */
  38. /** @defgroup FMPSMBUSEx_FastModePlus FMPSMBUS Extended Fast Mode Plus
  39. * @{
  40. */
  41. #define FMPSMBUS_FASTMODEPLUS_SCL SYSCFG_CFGR_FMPI2C1_SCL /*!< Enable Fast Mode Plus on FMPI2C1 SCL pins */
  42. #define FMPSMBUS_FASTMODEPLUS_SDA SYSCFG_CFGR_FMPI2C1_SDA /*!< Enable Fast Mode Plus on FMPI2C1 SDA pins */
  43. /**
  44. * @}
  45. */
  46. /**
  47. * @}
  48. */
  49. /* Exported macro ------------------------------------------------------------*/
  50. /** @defgroup FMPSMBUSEx_Exported_Macros FMPSMBUS Extended Exported Macros
  51. * @{
  52. */
  53. /**
  54. * @}
  55. */
  56. /* Exported functions --------------------------------------------------------*/
  57. /** @addtogroup FMPSMBUSEx_Exported_Functions FMPSMBUS Extended Exported Functions
  58. * @{
  59. */
  60. /** @addtogroup FMPSMBUSEx_Exported_Functions_Group2 WakeUp Mode Functions
  61. * @{
  62. */
  63. /* Peripheral Control functions ************************************************/
  64. /**
  65. * @}
  66. */
  67. /** @addtogroup FMPSMBUSEx_Exported_Functions_Group3 Fast Mode Plus Functions
  68. * @{
  69. */
  70. void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
  71. void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
  72. /**
  73. * @}
  74. */
  75. /**
  76. * @}
  77. */
  78. /* Private constants ---------------------------------------------------------*/
  79. /** @defgroup FMPSMBUSEx_Private_Constants FMPSMBUS Extended Private Constants
  80. * @{
  81. */
  82. /**
  83. * @}
  84. */
  85. /* Private macros ------------------------------------------------------------*/
  86. /** @defgroup FMPSMBUSEx_Private_Macro FMPSMBUS Extended Private Macros
  87. * @{
  88. */
  89. #define IS_FMPSMBUS_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SCL)) == \
  90. FMPSMBUS_FASTMODEPLUS_SCL) || \
  91. (((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SDA)) == \
  92. FMPSMBUS_FASTMODEPLUS_SDA))
  93. /**
  94. * @}
  95. */
  96. /* Private Functions ---------------------------------------------------------*/
  97. /** @defgroup FMPSMBUSEx_Private_Functions FMPSMBUS Extended Private Functions
  98. * @{
  99. */
  100. /* Private functions are defined in stm32f4xx_hal_fmpsmbus_ex.c file */
  101. /**
  102. * @}
  103. */
  104. /**
  105. * @}
  106. */
  107. /**
  108. * @}
  109. */
  110. #endif /* FMPI2C_CR1_PE */
  111. #ifdef __cplusplus
  112. }
  113. #endif
  114. #endif /* STM32F4xx_HAL_FMPSMBUS_EX_H */