STM32G474xx HAL 用户手册
定义
SMBUS 起停模式定义
SMBUS 导出常量

定义

#define SMBUS_NO_STARTSTOP   (0x00000000U)
#define SMBUS_GENERATE_STOP   (uint32_t)(0x80000000U | I2C_CR2_STOP)
#define SMBUS_GENERATE_START_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN)
#define SMBUS_GENERATE_START_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)

定义文档

#define SMBUS_GENERATE_START_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN)

定义位于文件 stm32g4xx_hal_smbus.h 的第 325 行。

HAL_SMBUS_Master_Receive_IT() 引用。

#define SMBUS_GENERATE_START_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)

定义位于文件 stm32g4xx_hal_smbus.h 的第 326 行。

HAL_SMBUS_Master_Transmit_IT() 引用。

#define SMBUS_GENERATE_STOP   (uint32_t)(0x80000000U | I2C_CR2_STOP)

定义位于文件 stm32g4xx_hal_smbus.h 的第 324 行。

#define SMBUS_NO_STARTSTOP   (0x00000000U)