STM32F4xx_HAL_Driver  1.8.3
stm32f4xx_ll_gpio.h File Reference

Header file of GPIO LL module. More...

Go to the source code of this file.

Data Structures

struct  LL_GPIO_InitTypeDef
 LL GPIO Init Structure definition. More...
 

Functions

__STATIC_INLINE void LL_GPIO_SetPinMode (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode)
 Configure gpio mode for a dedicated pin on dedicated port. More...
 
__STATIC_INLINE uint32_t LL_GPIO_GetPinMode (GPIO_TypeDef *GPIOx, uint32_t Pin)
 Return gpio mode for a dedicated pin on dedicated port. More...
 
__STATIC_INLINE void LL_GPIO_SetPinOutputType (GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t OutputType)
 Configure gpio output type for several pins on dedicated port. More...
 
__STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType (GPIO_TypeDef *GPIOx, uint32_t Pin)
 Return gpio output type for several pins on dedicated port. More...
 
__STATIC_INLINE void LL_GPIO_SetPinSpeed (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed)
 Configure gpio speed for a dedicated pin on dedicated port. More...
 
__STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed (GPIO_TypeDef *GPIOx, uint32_t Pin)
 Return gpio speed for a dedicated pin on dedicated port. More...
 
__STATIC_INLINE void LL_GPIO_SetPinPull (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull)
 Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port. More...
 
__STATIC_INLINE uint32_t LL_GPIO_GetPinPull (GPIO_TypeDef *GPIOx, uint32_t Pin)
 Return gpio pull-up or pull-down for a dedicated pin on a dedicated port. More...
 
__STATIC_INLINE void LL_GPIO_SetAFPin_0_7 (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
 Configure gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. More...
 
__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7 (GPIO_TypeDef *GPIOx, uint32_t Pin)
 Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. @rmtoll AFRL AFSELy LL_GPIO_GetAFPin_0_7. More...
 
__STATIC_INLINE void LL_GPIO_SetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
 Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. More...
 
__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint32_t Pin)
 Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. More...
 
__STATIC_INLINE void LL_GPIO_LockPin (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 Lock configuration of several pins for a dedicated port. More...
 
__STATIC_INLINE uint32_t LL_GPIO_IsPinLocked (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 Return 1 if all pins passed as parameter, of a dedicated port, are locked. else Return 0. @rmtoll LCKR LCKy LL_GPIO_IsPinLocked. More...
 
__STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked (GPIO_TypeDef *GPIOx)
 Return 1 if one of the pin of a dedicated port is locked. else return 0. @rmtoll LCKR LCKK LL_GPIO_IsAnyPinLocked. More...
 
__STATIC_INLINE uint32_t LL_GPIO_ReadInputPort (GPIO_TypeDef *GPIOx)
 Return full input data register value for a dedicated port. @rmtoll IDR IDy LL_GPIO_ReadInputPort. More...
 
__STATIC_INLINE uint32_t LL_GPIO_IsInputPinSet (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 Return if input data level for several pins of dedicated port is high or low. @rmtoll IDR IDy LL_GPIO_IsInputPinSet. More...
 
__STATIC_INLINE void LL_GPIO_WriteOutputPort (GPIO_TypeDef *GPIOx, uint32_t PortValue)
 Write output data register for the port. @rmtoll ODR ODy LL_GPIO_WriteOutputPort. More...
 
__STATIC_INLINE uint32_t LL_GPIO_ReadOutputPort (GPIO_TypeDef *GPIOx)
 Return full output data register value for a dedicated port. @rmtoll ODR ODy LL_GPIO_ReadOutputPort. More...
 
__STATIC_INLINE uint32_t LL_GPIO_IsOutputPinSet (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 Return if input data level for several pins of dedicated port is high or low. @rmtoll ODR ODy LL_GPIO_IsOutputPinSet. More...
 
__STATIC_INLINE void LL_GPIO_SetOutputPin (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 Set several pins to high level on dedicated gpio port. @rmtoll BSRR BSy LL_GPIO_SetOutputPin. More...
 
__STATIC_INLINE void LL_GPIO_ResetOutputPin (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 Set several pins to low level on dedicated gpio port. @rmtoll BSRR BRy LL_GPIO_ResetOutputPin. More...
 
__STATIC_INLINE void LL_GPIO_TogglePin (GPIO_TypeDef *GPIOx, uint32_t PinMask)
 Toggle data value for several pin of dedicated port. @rmtoll ODR ODy LL_GPIO_TogglePin. More...
 
ErrorStatus LL_GPIO_DeInit (GPIO_TypeDef *GPIOx)
 De-initialize GPIO registers (Registers restored to their default values). More...
 
ErrorStatus LL_GPIO_Init (GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct)
 Initialize GPIO registers according to the specified parameters in GPIO_InitStruct. More...
 
void LL_GPIO_StructInit (LL_GPIO_InitTypeDef *GPIO_InitStruct)
 Set each LL_GPIO_InitTypeDef field to default value. More...
 

Detailed Description

Header file of GPIO LL module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f4xx_ll_gpio.h.