EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #241 background imageLoading...
Page #241 background image
UM1581
General-purpose I/Os (GPIO)
DocID023800 Rev 1
241/584
Function Name
void GPIO_WriteBit ( GPIO_TypeDef * GPIOx, uint16_t
GPIO_Pin, BitAction BitVal)
Function Description
Sets or clears the selected data port bit.
Parameters
ï‚· GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
ï‚· GPIO_Pin : specifies the port bit to be written.
Parameters
ï‚· BitVal : specifies the value to be written to the selected bit.
This parameter can be one of the BitAction enumeration
values:
 Bit_RESET : to clear the port pin
 Bit_SET : to set the port pin
Return values
ï‚· None.
Notes
ï‚· This parameter can be GPIO_Pin_x where x can be : (0..15)
for GPIOA, GPIOB, GPIOC, GPIOD or GPIOE; (0..2, 4, 6,
9..10) for GPIOF.
12.2.6.8 GPIO_Write
Function Name
void GPIO_Write ( GPIO_TypeDef * GPIOx, uint16_t PortVal)
Function Description
Writes data to the specified GPIO data port.
Parameters
ï‚· GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
ï‚· PortVal : specifies the value to be written to the port output
data register.
Return values
ï‚· None.
Notes
ï‚· None.
12.2.7 GPIO Alternate functions configuration functions
12.2.7.1 GPIO_PinAFConfig
Function Name
void GPIO_PinAFConfig ( GPIO_TypeDef * GPIOx, uint16_t
GPIO_PinSource, uint8_t GPIO_AF)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals