WB32L003 Standard Peripherals Firmware Library
函数
wb32l003_gpio.c 文件参考

This file provides all the GPIO firmware functions. 更多...

#include "wb32l003_gpio.h"

函数

void GPIO_DeInit (GPIO_TypeDef *GPIOx)
 De-initializes the GPIOx peripheral registers to their default reset values. 更多...
 
void GPIO_Init (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t PinConfig)
 Initializes the GPIOx peripheral according to the PinConfig. 更多...
 
void GPIO_SetAFPin (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t Alternate)
 Configure gpio alternate function of any pins for a dedicated port. 更多...
 
uint8_t GPIO_ReadInputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Reads the specified input port pin. 更多...
 
uint16_t GPIO_ReadInputData (GPIO_TypeDef *GPIOx)
 Reads the specified GPIO input data port. 更多...
 
uint8_t GPIO_ReadOutputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Reads the specified output data port bit. 更多...
 
uint16_t GPIO_ReadOutputData (GPIO_TypeDef *GPIOx)
 Reads the specified GPIO output data port. 更多...
 
void GPIO_SetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Sets the selected data port bits. 更多...
 
void GPIO_ResetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Clears the selected data port bits. 更多...
 
void GPIO_WriteBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, BitAction BitVal)
 Sets or clears the selected data port bit. 更多...
 
void GPIO_Write (GPIO_TypeDef *GPIOx, uint16_t PortVal)
 Writes data to the specified GPIO data port. 更多...
 
void GPIO_ToggleBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Toggle data value for several pin of specified port. 更多...
 
void GPIO_DriveCurrentConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t Current)
 Configure the drive current of several pins for a specified port. 更多...
 
void GPIO_EXTIConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t EXTI_Config)
 Handles the configuration of GPIO_Pin's EXTI. 更多...
 
void GPIO_DebounceConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t DebounceConfig)
 Handles the configuration of GPIO debounce. 更多...
 
FlagStatus GPIO_EXTI_GetFlagStatus (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Checks whether the specified GPIO_Pin's EXTI line flag is set or not. 更多...
 
void GPIO_EXTI_ClearFlag (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Clears the GPIO_Pin's EXTI line pending flags. 更多...
 
ITStatus GPIO_EXTI_GetIT (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Checks that the interrupt of the EXTI line for the specified GPIO Pin is enabled. 更多...
 
void GPIO_EXTI_ClearIT (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Clears the GPIO_Pin's EXTI line pending bits. 更多...
 

详细描述

This file provides all the GPIO firmware functions.

作者
Westberry Application Team
版本
V0.0.4
日期
23-April-2023