STM32G474xx HAL 用户手册
宏定义
PWR PVD 中断和事件模式
PWR 导出的常量

宏定义

#define PWR_PVD_MODE_NORMAL   ((uint32_t)0x00000000)
#define PWR_PVD_MODE_IT_RISING   ((uint32_t)0x00010001)
#define PWR_PVD_MODE_IT_FALLING   ((uint32_t)0x00010002)
#define PWR_PVD_MODE_IT_RISING_FALLING   ((uint32_t)0x00010003)
#define PWR_PVD_MODE_EVENT_RISING   ((uint32_t)0x00020001)
#define PWR_PVD_MODE_EVENT_FALLING   ((uint32_t)0x00020002)
#define PWR_PVD_MODE_EVENT_RISING_FALLING   ((uint32_t)0x00020003)

宏定义文档

#define PWR_PVD_MODE_EVENT_FALLING   ((uint32_t)0x00020002)

事件模式,下降沿触发检测

定义于文件 91stm32g4xx_hal_pwr.h 中。

#define PWR_PVD_MODE_EVENT_RISING   ((uint32_t)0x00020001)

事件模式,上升沿触发检测

定义于文件 90stm32g4xx_hal_pwr.h 中。

#define PWR_PVD_MODE_EVENT_RISING_FALLING   ((uint32_t)0x00020003)

事件模式,上升/下降沿触发检测

定义于文件 92stm32g4xx_hal_pwr.h 中。

#define PWR_PVD_MODE_IT_FALLING   ((uint32_t)0x00010002)

外部中断模式,下降沿触发检测

定义于文件 88stm32g4xx_hal_pwr.h 中。

#define PWR_PVD_MODE_IT_RISING   ((uint32_t)0x00010001)

外部中断模式,上升沿触发检测

定义于文件 87stm32g4xx_hal_pwr.h 中。

#define PWR_PVD_MODE_IT_RISING_FALLING   ((uint32_t)0x00010003)

外部中断模式,上升/下降沿触发检测

定义于文件 89stm32g4xx_hal_pwr.h 中。

#define PWR_PVD_MODE_NORMAL   ((uint32_t)0x00000000)

使用基本模式

定义于文件 86stm32g4xx_hal_pwr.h 中。