HAL
LL_GPIO_GetPinMode() is only used within HAL.
 
Symbols
loading...
Files
loading...

LL_GPIO_GetPinMode() function

Return gpio mode for a dedicated pin on dedicated port.

Syntax

__STATIC_INLINE uint32_t LL_GPIO_GetPinMode(GPIO_TypeDef *GPIOx,     uint32_t Pin);

Arguments

GPIOx

GPIO Port

Pin

This parameter can be one of the following values: @arg LL_GPIO_PIN_0 @arg LL_GPIO_PIN_1 @arg LL_GPIO_PIN_2 @arg LL_GPIO_PIN_3 @arg LL_GPIO_PIN_4 @arg LL_GPIO_PIN_5 @arg LL_GPIO_PIN_6 @arg LL_GPIO_PIN_7 @arg LL_GPIO_PIN_8 @arg LL_GPIO_PIN_9 @arg LL_GPIO_PIN_10 @arg LL_GPIO_PIN_11 @arg LL_GPIO_PIN_12 @arg LL_GPIO_PIN_13 @arg LL_GPIO_PIN_14 @arg LL_GPIO_PIN_15

Return value

Returned value can be one of the following values: @arg LL_GPIO_MODE_INPUT @arg LL_GPIO_MODE_OUTPUT @arg LL_GPIO_MODE_ALTERNATE @arg LL_GPIO_MODE_ANALOG

Notes

I/O mode can be Input mode, General purpose output, Alternate function mode or Analog. Warning: only one pin can be passed as parameter.

References

LocationText
stm32f4xx_ll_gpio.h:307
__STATIC_INLINE uint32_t LL_GPIO_GetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin)

Call Tree

Functions called by LL_GPIO_GetPinMode()
LL_GPIO_GetPinMode()
all items filtered out
Data read by LL_GPIO_GetPinMode()
LL_GPIO_GetPinMode()
Type of LL_GPIO_GetPinMode()
LL_GPIO_GetPinMode()
uint32_t
all items filtered out