WB32F10x Standard Peripherals Firmware Library

函数
wb32f10x_gpio.c 文件参考

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

`#include "wb32f10x_gpio.h"`
`#include "wb32f10x_rcc.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_0_7 (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t Alternate)
| Configure gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. 更多...
void | GPIO_SetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t Alternate)
| Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. 更多...
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_LockPin (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
| Lock configuration of several pins for a specified port. 更多...
uint32_t | GPIO_IsPinLocked (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
| Return 1 if all pins passed as parameter, of a specified port, are locked. else Return 0. 更多...
void | GPIO_SchmittTriggerCmd (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, FunctionalState NewState)
| Enables or disables the schmitt trigger of several pins for a 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_EXTILineConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource)
| Selects the GPIO pin used as EXTI Line. 更多...

## 详细描述

This file provides all the GPIO firmware functions.

作者
  Westberry Application Team

版本
  V0.1.10

日期
  05-January-2023