6#ifdef HAL_GPIO_MODULE_ENABLED
10#if defined(STM32F0) || defined(STM32G0) || defined(STM32L0)
14#elif defined(STM32WB0)
15 STM32_GPIO_EXTI_GPIOA,
16 STM32_GPIO_EXTI_GPIOB,
24 STM32_GPIO_EXTI_10_15,
26 STM32_GPIO_EXTI_NUMBER
29stm32_gpio_exti_t STM32_GPIO_EXTI_GetID(uint16_t pin);
36 STM32GPIO(GPIO_TypeDef* port, uint16_t pin, IRQn_Type irq = NonMaskableInt_IRQn);
40 ErrorCode
Write(
bool value);
48 static STM32GPIO* map[STM32_GPIO_EXTI_NUMBER];
通用输入输出(GPIO)接口类。General Purpose Input/Output (GPIO) interface class.
ErrorCode Write(bool value)
写入 GPIO 引脚状态。Writes the GPIO pin state.
bool Read()
读取 GPIO 引脚状态。Reads the GPIO pin state.
ErrorCode DisableInterrupt()
禁用 GPIO 引脚中断。Disables the GPIO pin interrupt.
ErrorCode SetConfig(Configuration config)
配置 GPIO 引脚参数。Configures the GPIO pin settings.
ErrorCode EnableInterrupt()
使能 GPIO 引脚中断。Enables the GPIO pin interrupt.
存储 GPIO 配置参数的结构体。Structure storing GPIO configuration parameters.