Hal_Gpio_Init; Hal_Gpio_Deinit; Hal_Gpio_Readpin; Hal_Gpio_Writepin - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
HAL_GPIO_TogglePin()
HAL_GPIO_LockPin()
HAL_GPIO_EXTI_IRQHandler()
HAL_GPIO_EXTI_Callback()
20.2.5

Detailed description of functions

HAL_GPIO_Init

Function name
Function description
Parameters
Return values

HAL_GPIO_DeInit

Function name
Function description
Parameters
Return values

HAL_GPIO_ReadPin

Function name
Function description
Parameters
Return values

HAL_GPIO_WritePin

Function name
Function description
Parameters
void HAL_GPIO_Init (GPIO_TypeDef * GPIOx,
GPIO_InitTypeDef * GPIO_Init)
Initializes the GPIOx peripheral according to the specified
parameters in the GPIO_Init.
GPIOx: where x can be (A..I) to select the GPIO peripheral.
GPIO_Init: pointer to a GPIO_InitTypeDef structure that
contains the configuration information for the specified GPIO
peripheral.
None:
void HAL_GPIO_DeInit (GPIO_TypeDef * GPIOx, uint32_t
GPIO_Pin)
De-initializes the GPIOx peripheral registers to their default reset
values.
GPIOx: where x can be (A..I) to select the GPIO peripheral.
GPIO_Pin: specifies the port bit to be written. This parameter
can be one of GPIO_PIN_x where x can be (0..15).
None:
GPIO_PinState HAL_GPIO_ReadPin (GPIO_TypeDef * GPIOx,
uint16_t GPIO_Pin)
Reads the specified input port pin.
GPIOx: where x can be (A..I) to select the GPIO peripheral.
GPIO_Pin: specifies the port bit to read. This parameter can
be GPIO_PIN_x where x can be (0..15).
The: input port pin value.
void HAL_GPIO_WritePin (GPIO_TypeDef * GPIOx, uint16_t
GPIO_Pin, GPIO_PinState PinState)
Sets or clears the selected data port bit.
GPIOx: where x can be (A..I) to select the GPIO peripheral
for all STM32F2XX devices
GPIO_Pin: specifies the port bit to be written. This parameter
can be one of GPIO_PIN_x where x can be (0..15).
DocID028236 Rev 2
HAL GPIO Generic Driver
261/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF