STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_gpio.h File Reference

Header file of GPIO HAL module. More...

Go to the source code of this file.

Enumerations

enum  GPIO_PinState { GPIO_PIN_RESET = 0U, GPIO_PIN_SET }
 GPIO Bit SET and Bit RESET enumeration. More...
 

Functions

void HAL_GPIO_Init (GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
 Initialize the GPIOx peripheral according to the specified parameters in the GPIO_Init. More...
 
void HAL_GPIO_DeInit (GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
 De-initialize the GPIOx peripheral registers to their default reset values. More...
 
GPIO_PinState HAL_GPIO_ReadPin (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Read the specified input port pin. More...
 
void HAL_GPIO_WritePin (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
 Set or clear the selected data port bit. More...
 
void HAL_GPIO_TogglePin (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Toggle the specified GPIO pin. More...
 
HAL_StatusTypeDef HAL_GPIO_LockPin (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Lock GPIO Pins configuration registers. More...
 
void HAL_GPIO_EXTI_IRQHandler (uint16_t GPIO_Pin)
 Handle EXTI interrupt request. More...
 
void HAL_GPIO_EXTI_Callback (uint16_t GPIO_Pin)
 EXTI line detection callback. More...
 

Variables

 C
 

Detailed Description

Header file of GPIO HAL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_gpio.h.

Enumeration Type Documentation

◆ GPIO_PinState

GPIO Bit SET and Bit RESET enumeration.

Enumerator
GPIO_PIN_RESET 
GPIO_PIN_SET 

Definition at line 68 of file stm32l4xx_hal_gpio.h.

69 {
70  GPIO_PIN_RESET = 0U,
GPIO_PinState
GPIO Bit SET and Bit RESET enumeration.

Variable Documentation

◆ C

C
Initial value:
{
#endif
typedef struct
{
uint32_t Pin;
uint32_t Mode;
uint32_t Pull;
uint32_t Speed;
uint32_t Alternate;
}GPIO_InitTypeDef
This file contains HAL common defines, enumeration, macros and structures definitions.