Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

140 Zeilen
3.7 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. * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef STM32F4xx_HAL_FMPSMBUS_EX_H
  21. #define STM32F4xx_HAL_FMPSMBUS_EX_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #if defined(FMPI2C_CR1_PE)
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "stm32f4xx_hal_def.h"
  28. /** @addtogroup STM32F4xx_HAL_Driver
  29. * @{
  30. */
  31. /** @addtogroup FMPSMBUSEx
  32. * @{
  33. */
  34. /* Exported types ------------------------------------------------------------*/
  35. /* Exported constants --------------------------------------------------------*/
  36. /** @defgroup FMPSMBUSEx_Exported_Constants FMPSMBUS Extended Exported Constants
  37. * @{
  38. */
  39. /** @defgroup FMPSMBUSEx_FastModePlus FMPSMBUS Extended Fast Mode Plus
  40. * @{
  41. */
  42. #define FMPSMBUS_FASTMODEPLUS_SCL SYSCFG_CFGR_FMPI2C1_SCL /*!< Enable Fast Mode Plus on FMPI2C1 SCL pins */
  43. #define FMPSMBUS_FASTMODEPLUS_SDA SYSCFG_CFGR_FMPI2C1_SDA /*!< Enable Fast Mode Plus on FMPI2C1 SDA pins */
  44. /**
  45. * @}
  46. */
  47. /**
  48. * @}
  49. */
  50. /* Exported macro ------------------------------------------------------------*/
  51. /** @defgroup FMPSMBUSEx_Exported_Macros FMPSMBUS Extended Exported Macros
  52. * @{
  53. */
  54. /**
  55. * @}
  56. */
  57. /* Exported functions --------------------------------------------------------*/
  58. /** @addtogroup FMPSMBUSEx_Exported_Functions FMPSMBUS Extended Exported Functions
  59. * @{
  60. */
  61. /** @addtogroup FMPSMBUSEx_Exported_Functions_Group2 WakeUp Mode Functions
  62. * @{
  63. */
  64. /* Peripheral Control functions ************************************************/
  65. /**
  66. * @}
  67. */
  68. /** @addtogroup FMPSMBUSEx_Exported_Functions_Group3 Fast Mode Plus Functions
  69. * @{
  70. */
  71. void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
  72. void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
  73. /**
  74. * @}
  75. */
  76. /**
  77. * @}
  78. */
  79. /* Private constants ---------------------------------------------------------*/
  80. /** @defgroup FMPSMBUSEx_Private_Constants FMPSMBUS Extended Private Constants
  81. * @{
  82. */
  83. /**
  84. * @}
  85. */
  86. /* Private macros ------------------------------------------------------------*/
  87. /** @defgroup FMPSMBUSEx_Private_Macro FMPSMBUS Extended Private Macros
  88. * @{
  89. */
  90. #define IS_FMPSMBUS_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SCL)) == \
  91. FMPSMBUS_FASTMODEPLUS_SCL) || \
  92. (((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SDA)) == \
  93. FMPSMBUS_FASTMODEPLUS_SDA))
  94. /**
  95. * @}
  96. */
  97. /* Private Functions ---------------------------------------------------------*/
  98. /** @defgroup FMPSMBUSEx_Private_Functions FMPSMBUS Extended Private Functions
  99. * @{
  100. */
  101. /* Private functions are defined in stm32f4xx_hal_fmpsmbus_ex.c file */
  102. /**
  103. * @}
  104. */
  105. /**
  106. * @}
  107. */
  108. /**
  109. * @}
  110. */
  111. #endif /* FMPI2C_CR1_PE */
  112. #ifdef __cplusplus
  113. }
  114. #endif
  115. #endif /* STM32F4xx_HAL_FMPSMBUS_EX_H */
  116. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/