STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
GPIO Private Macros
Collaboration diagram for GPIO Private Macros:

Macros

#define IS_GPIO_PIN_ACTION(ACTION)
#define IS_GPIO_PIN(__PIN__)
#define IS_GPIO_MODE(MODE)
#define IS_GPIO_SPEED(SPEED)
#define IS_GPIO_PULL(PULL)

Detailed Description

Macro Definition Documentation

◆ IS_GPIO_MODE

#define IS_GPIO_MODE ( MODE)
Value:
(((MODE) == GPIO_MODE_INPUT) ||\
((MODE) == GPIO_MODE_OUTPUT_PP) ||\
((MODE) == GPIO_MODE_OUTPUT_OD) ||\
((MODE) == GPIO_MODE_AF_PP) ||\
((MODE) == GPIO_MODE_AF_OD) ||\
((MODE) == GPIO_MODE_IT_RISING) ||\
((MODE) == GPIO_MODE_IT_FALLING) ||\
((MODE) == GPIO_MODE_EVT_RISING) ||\
((MODE) == GPIO_MODE_EVT_FALLING) ||\
((MODE) == GPIO_MODE_ANALOG))
#define GPIO_MODE_IT_RISING_FALLING
External Interrupt Mode with Rising/Falling edge trigger detection.
#define GPIO_MODE_IT_RISING
External Interrupt Mode with Rising edge trigger detection.
#define GPIO_MODE_OUTPUT_PP
Output Push Pull Mode.
#define GPIO_MODE_EVT_RISING_FALLING
External Event Mode with Rising/Falling edge trigger detection.
#define GPIO_MODE_AF_OD
Alternate Function Open Drain Mode.
#define GPIO_MODE_OUTPUT_OD
Output Open Drain Mode.
#define GPIO_MODE_AF_PP
Alternate Function Push Pull Mode.
#define GPIO_MODE_ANALOG
Analog Mode.
#define GPIO_MODE_EVT_RISING
External Event Mode with Rising edge trigger detection.
#define GPIO_MODE_IT_FALLING
External Interrupt Mode with Falling edge trigger detection.
#define GPIO_MODE_EVT_FALLING
External Event Mode with Falling edge trigger detection.
#define GPIO_MODE_INPUT
Input Floating Mode.

Definition at line 315 of file stm32h7xx_hal_gpio.h.

◆ IS_GPIO_PIN

#define IS_GPIO_PIN ( __PIN__)
Value:
((((uint32_t)(__PIN__) & GPIO_PIN_MASK) != 0x00U) &&\
(((uint32_t)(__PIN__) & ~GPIO_PIN_MASK) == 0x00U))
#define GPIO_PIN_MASK

Definition at line 313 of file stm32h7xx_hal_gpio.h.

◆ IS_GPIO_PIN_ACTION

#define IS_GPIO_PIN_ACTION ( ACTION)
Value:
(((ACTION) == GPIO_PIN_RESET) || ((ACTION) == GPIO_PIN_SET))
@ GPIO_PIN_SET
@ GPIO_PIN_RESET

Definition at line 312 of file stm32h7xx_hal_gpio.h.

◆ IS_GPIO_PULL

#define IS_GPIO_PULL ( PULL)
Value:
(((PULL) == GPIO_NOPULL) || ((PULL) == GPIO_PULLUP) || \
((PULL) == GPIO_PULLDOWN))
#define GPIO_NOPULL
No Pull-up or Pull-down activation.
#define GPIO_PULLDOWN
Pull-down activation.
#define GPIO_PULLUP
Pull-up activation.

Definition at line 330 of file stm32h7xx_hal_gpio.h.

◆ IS_GPIO_SPEED

#define IS_GPIO_SPEED ( SPEED)
Value:
(((SPEED) == GPIO_SPEED_FREQ_LOW) || ((SPEED) == GPIO_SPEED_FREQ_MEDIUM) || \
((SPEED) == GPIO_SPEED_FREQ_HIGH) || ((SPEED) == GPIO_SPEED_FREQ_VERY_HIGH))
#define GPIO_SPEED_FREQ_MEDIUM
Medium speed.
#define GPIO_SPEED_FREQ_VERY_HIGH
High speed.
#define GPIO_SPEED_FREQ_LOW
Low speed.
#define GPIO_SPEED_FREQ_HIGH
Fast speed.

Definition at line 327 of file stm32h7xx_hal_gpio.h.