RTEMS 6.1-rc7
Loading...
Searching...
No Matches
stm32h7xx_hal_smbus_ex.h
Go to the documentation of this file.
1
19/* Define to prevent recursive inclusion -------------------------------------*/
20#ifndef STM32H7xx_HAL_SMBUS_EX_H
21#define STM32H7xx_HAL_SMBUS_EX_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/* Includes ------------------------------------------------------------------*/
28#include "stm32h7xx_hal_def.h"
29
38/* Exported types ------------------------------------------------------------*/
39/* Exported constants --------------------------------------------------------*/
49#define SMBUS_FMP_NOT_SUPPORTED 0xAAAA0000U
50#define SMBUS_FASTMODEPLUS_PB6 SYSCFG_PMCR_I2C_PB6_FMP
51#define SMBUS_FASTMODEPLUS_PB7 SYSCFG_PMCR_I2C_PB7_FMP
52#define SMBUS_FASTMODEPLUS_PB8 SYSCFG_PMCR_I2C_PB8_FMP
53#define SMBUS_FASTMODEPLUS_PB9 SYSCFG_PMCR_I2C_PB9_FMP
54#define SMBUS_FASTMODEPLUS_I2C1 SYSCFG_PMCR_I2C1_FMP
55#define SMBUS_FASTMODEPLUS_I2C2 SYSCFG_PMCR_I2C2_FMP
56#define SMBUS_FASTMODEPLUS_I2C3 SYSCFG_PMCR_I2C3_FMP
57#define SMBUS_FASTMODEPLUS_I2C4 SYSCFG_PMCR_I2C4_FMP
58#if defined(SYSCFG_PMCR_I2C5_FMP)
59#define SMBUS_FASTMODEPLUS_I2C5 SYSCFG_PMCR_I2C5_FMP
60#else
61#define SMBUS_FASTMODEPLUS_I2C5 (uint32_t)(0x00001000U | SMBUS_FMP_NOT_SUPPORTED)
62#endif /* SYSCFG_PMCR_I2C5_FMP */
71/* Exported macro ------------------------------------------------------------*/
81/* Exported functions --------------------------------------------------------*/
89/* Peripheral Control functions ************************************************/
90HAL_StatusTypeDef HAL_SMBUSEx_EnableWakeUp(SMBUS_HandleTypeDef *hsmbus);
91HAL_StatusTypeDef HAL_SMBUSEx_DisableWakeUp(SMBUS_HandleTypeDef *hsmbus);
99void HAL_SMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
100void HAL_SMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
109/* Private constants ---------------------------------------------------------*/
119/* Private macros ------------------------------------------------------------*/
124#define IS_SMBUS_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & SMBUS_FASTMODEPLUS_PB6) == SMBUS_FASTMODEPLUS_PB6) || \
125 (((__CONFIG__) & SMBUS_FASTMODEPLUS_PB7) == SMBUS_FASTMODEPLUS_PB7) || \
126 (((__CONFIG__) & SMBUS_FASTMODEPLUS_PB8) == SMBUS_FASTMODEPLUS_PB8) || \
127 (((__CONFIG__) & SMBUS_FASTMODEPLUS_PB9) == SMBUS_FASTMODEPLUS_PB9) || \
128 (((__CONFIG__) & SMBUS_FASTMODEPLUS_I2C1) == SMBUS_FASTMODEPLUS_I2C1) || \
129 (((__CONFIG__) & SMBUS_FASTMODEPLUS_I2C2) == SMBUS_FASTMODEPLUS_I2C2) || \
130 (((__CONFIG__) & SMBUS_FASTMODEPLUS_I2C3) == SMBUS_FASTMODEPLUS_I2C3) || \
131 (((__CONFIG__) & SMBUS_FASTMODEPLUS_I2C4) == SMBUS_FASTMODEPLUS_I2C4))
136/* Private Functions ---------------------------------------------------------*/
141/* Private functions are defined in stm32h7xx_hal_smbus_ex.c file */
154#ifdef __cplusplus
155}
156#endif
157
158#endif /* STM32H7xx_HAL_SMBUS_EX_H */
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32h7xx_hal_def.h:47
Definition: stm32h7xx_hal_smbus.h:143