STM32G474xx HAL用户手册
函数
端口配置
GPIO导出的函数

函数

__STATIC_INLINE void LL_GPIO_SetPinMode (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode)
 为指定端口上的专用引脚配置gpio模式。
__STATIC_INLINE uint32_t LL_GPIO_GetPinMode (GPIO_TypeDef *GPIOx, uint32_t Pin)
 返回指定端口上专用引脚的gpio模式。
__STATIC_INLINE void LL_GPIO_SetPinOutputType (GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t OutputType)
 为指定端口上的多个引脚配置gpio输出类型。
__STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType (GPIO_TypeDef *GPIOx, uint32_t Pin)
 返回指定端口上多个引脚的gpio输出类型。
__STATIC_INLINE void LL_GPIO_SetPinSpeed (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed)
 为指定端口上的专用引脚配置gpio速度。
__STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed (GPIO_TypeDef *GPIOx, uint32_t Pin)
 返回指定端口上专用引脚的gpio速度。
__STATIC_INLINE void LL_GPIO_SetPinPull (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull)
 为指定端口上的专用引脚配置gpio上拉或下拉。
__STATIC_INLINE uint32_t LL_GPIO_GetPinPull (GPIO_TypeDef *GPIOx, uint32_t Pin)
 返回指定端口上专用引脚的gpio上拉或下拉。
__STATIC_INLINE void LL_GPIO_SetAFPin_0_7 (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
 为指定端口上0到7的专用引脚配置gpio复用功能。
__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7 (GPIO_TypeDef *GPIOx, uint32_t Pin)
 返回指定端口上0到7的专用引脚的gpio复用功能。
__STATIC_INLINE void LL_GPIO_SetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
 为指定端口上8到15的专用引脚配置gpio复用功能。
__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint32_t Pin)
 返回指定端口上8到15的专用引脚的gpio复用功能。
__STATIC_INLINE void LL_GPIO_LockPin (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 锁定指定端口的多个引脚的配置。
__STATIC_INLINE uint32_t LL_GPIO_IsPinLocked (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 如果指定端口上所有通过参数传递的引脚均已锁定,则返回1。
__STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked (GPIO_TypeDef *GPIOx)
 如果指定端口的其中一个引脚已锁定,则返回1。

函数文档

__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7 ( GPIO_TypeDef *  GPIOx,
uint32_t  Pin 
)

返回指定端口上0到7的专用引脚的gpio复用功能。

参考手册与LL API的交叉引用:
AFRL AFSELy LL_GPIO_GetAFPin_0_7
参数:
GPIOxGPIO端口
Pin此参数可以是以下值之一:
返回值:
返回值可以是以下值之一:

定义于文件stm32g4xx_ll_gpio.h的第605行。

__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15 ( GPIO_TypeDef *  GPIOx,
uint32_t  Pin 
)

返回指定端口上8到15的专用引脚的gpio复用功能。

注意:
可能的取值范围为AF0到AF15,具体取决于目标器件。
参考手册与LL API的交叉引用:
AFRH AFSELy LL_GPIO_GetAFPin_8_15
参数:
GPIOxGPIO端口
Pin此参数可以是以下值之一:
返回值:
返回值可以是以下值之一:

定义于文件stm32g4xx_ll_gpio.h的第683行。

__STATIC_INLINE uint32_t LL_GPIO_GetPinMode ( GPIO_TypeDef *  GPIOx,