RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
arm
stm32h7
include
stm32h7xx_hal_smbus_ex.h
Go to the documentation of this file.
1
18
19
/* Define to prevent recursive inclusion -------------------------------------*/
20
#ifndef STM32H7xx_HAL_SMBUS_EX_H
21
#define STM32H7xx_HAL_SMBUS_EX_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/* Includes ------------------------------------------------------------------*/
28
#include "
stm32h7xx_hal_def.h
"
29
33
37
38
/* Exported types ------------------------------------------------------------*/
39
/* Exported constants --------------------------------------------------------*/
44
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 */
66
70
71
/* Exported macro ------------------------------------------------------------*/
76
80
81
/* Exported functions --------------------------------------------------------*/
85
89
/* Peripheral Control functions ************************************************/
90
HAL_StatusTypeDef
HAL_SMBUSEx_EnableWakeUp(
SMBUS_HandleTypeDef
*hsmbus);
91
HAL_StatusTypeDef
HAL_SMBUSEx_DisableWakeUp(
SMBUS_HandleTypeDef
*hsmbus);
95
99
void
HAL_SMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
100
void
HAL_SMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
104
108
109
/* Private constants ---------------------------------------------------------*/
114
118
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))
135
136
/* Private Functions ---------------------------------------------------------*/
141
/* Private functions are defined in stm32h7xx_hal_smbus_ex.c file */
145
149
153
154
#ifdef __cplusplus
155
}
156
#endif
157
158
#endif
/* STM32H7xx_HAL_SMBUS_EX_H */
stm32h7xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition.
Definition
stm32h7xx_hal_def.h:47
SMBUS_HandleTypeDef
Definition
stm32h7xx_hal_smbus.h:143
Generated by
1.18.0