思澈科技软件开发工具包  2.20

Functions

GPIO_PinState HAL_GPIO_ReadPin (GPIO_TypeDef *hgpio, uint16_t GPIO_Pin)
 Read the specified input port pin. More...
 
void HAL_GPIO_WritePin (GPIO_TypeDef *hgpio, uint16_t GPIO_Pin, GPIO_PinState PinState)
 Set or clear the selected data port bit. More...
 
void HAL_GPIO_TogglePin (GPIO_TypeDef *hgpio, uint16_t GPIO_Pin)
 Toggle the specified GPIO pin. More...
 
void HAL_GPIO_EXTI_IRQHandler (GPIO_TypeDef *hgpio, uint16_t GPIO_Pin)
 Handle EXTI interrupt request. More...
 
void HAL_GPIO_EXTI_Callback (GPIO_TypeDef *hgpio, uint16_t GPIO_Pin)
 EXTI line detection callback. More...
 
uint32_t HAL_GPIO_GetMode (GPIO_TypeDef *hgpio, uint16_t GPIO_Pin)
 Get the GPIO mode. More...
 
void HAL_GPIO_IRQHandler (GPIO_TypeDef *hgpio)
 Handle all GPIO interrupt request which belong current group. More...
 
HAL_StatusTypeDef HAL_GPIO_Save (GPIO_TypeDef *hgpio, GPIOxRestore_TypeDef *p_buf, uint32_t buf_cnt)
 Save gpio instance's all configuration to buffer. More...
 
HAL_StatusTypeDef HAL_GPIO_Restore (GPIO_TypeDef *hgpio, GPIOxRestore_TypeDef *p_buf, uint32_t buf_cnt)
 Restore gpio instance's all configuration from buffer. More...
 
HAL_StatusTypeDef HAL_GPIO_ClearInterrupt (GPIO_TypeDef *hgpio)
 Clear all interrupt. More...
 
HAL_StatusTypeDef HAL_GPIO_ClearPinInterrupt (GPIO_TypeDef *hgpio, uint16_t GPIO_Pin)
 Clear specified pin interrupt. More...
 

Detailed Description

Function Documentation

◆ HAL_GPIO_ClearInterrupt()

HAL_StatusTypeDef HAL_GPIO_ClearInterrupt ( GPIO_TypeDef hgpio)

Clear all interrupt.

Parameters
hgpioGPIO handle
Returns
Hal status error

◆ HAL_GPIO_ClearPinInterrupt()

HAL_StatusTypeDef HAL_GPIO_ClearPinInterrupt ( GPIO_TypeDef hgpio,
uint16_t  GPIO_Pin 
)

Clear specified pin interrupt.

Parameters
hgpioGPIO handle
GPIO_Pinspecifies the pin index to be clear, starting from 0.
Returns
HAL_OK if IRQ been clear

◆ HAL_GPIO_EXTI_Callback()

void HAL_GPIO_EXTI_Callback ( GPIO_TypeDef hgpio,
uint16_t  GPIO_Pin 
)

EXTI line detection callback.

Parameters
hgpioGPIO handle
GPIO_PinSpecifies the port pin connected to corresponding EXTI line, starting from 0.
Return values
None

◆ HAL_GPIO_EXTI_IRQHandler()

void HAL_GPIO_EXTI_IRQHandler ( GPIO_TypeDef hgpio,
uint16_t  GPIO_Pin 
)

Handle EXTI interrupt request.

Parameters
hgpioGPIO handle
GPIO_PinSpecifies the port pin connected to corresponding EXTI line, starting from 0.
Return values
None

◆ HAL_GPIO_GetMode()

uint32_t HAL_GPIO_GetMode ( GPIO_TypeDef hgpio,
uint16_t  GPIO_Pin 
)

Get the GPIO mode.

Parameters
hgpioGPIO handle
GPIO_PinSpecifies the port pin connected to corresponding EXTI line, starting from 0.
Return values
modein GPIO mode, return UINT32_MAX if invalid

◆ HAL_GPIO_IRQHandler()

void HAL_GPIO_IRQHandler ( GPIO_TypeDef hgpio)

Handle all GPIO interrupt request which belong current group.

Parameters
hgpioGPIO handle
Return values
None

◆ HAL_GPIO_ReadPin()

GPIO_PinState HAL_GPIO_ReadPin ( GPIO_TypeDef hgpio,
uint16_t  GPIO_Pin 
)

Read the specified input port pin.

Parameters
hgpioGPIO handle
GPIO_Pinspecifies the pin index to be read, starting from 0.
Return values
Theinput port pin value.

◆ HAL_GPIO_Restore()

HAL_StatusTypeDef HAL_GPIO_Restore ( GPIO_TypeDef hgpio,
GPIOxRestore_TypeDef p_buf,
uint32_t  buf_cnt 
)

Restore gpio instance's all configuration from buffer.

Parameters
hgpio- GPIO handle
p_buf- Buffer for restore GPIO configuration
buf_cnt- Buffer numbers
Returns
Hal status error

◆ HAL_GPIO_Save()

HAL_StatusTypeDef HAL_GPIO_Save ( GPIO_TypeDef hgpio,
GPIOxRestore_TypeDef p_buf,
uint32_t  buf_cnt 
)

Save gpio instance's all configuration to buffer.

Parameters
hgpio- GPIO handle
p_buf- Buffer for saving GPIO configuration
buf_cnt- Buffer numbers
Returns
Hal status error

◆ HAL_GPIO_TogglePin()

void HAL_GPIO_TogglePin ( GPIO_TypeDef hgpio,
uint16_t  GPIO_Pin 
)

Toggle the specified GPIO pin.

Parameters
hgpioGPIO handle
GPIO_Pinspecifies the pin index to be toggoled, starting from 0.
Return values
None

◆ HAL_GPIO_WritePin()

void HAL_GPIO_WritePin ( GPIO_TypeDef hgpio,
uint16_t  GPIO_Pin,
GPIO_PinState  PinState 
)

Set or clear the selected data port bit.

Parameters
hgpioGPIO handle
GPIO_Pinspecifies the pin index to be written, starting from 0.
PinStatespecifies the value to be written to the selected bit. This parameter can be one of the GPIO_PinState enum values:
  • GPIO_PIN_RESET: to clear the port pin
  • GPIO_PIN_SET: to set the port pin
Return values
None