General-purpose I/Os (GPIO)
Return values
Notes
12.2.6.5
GPIO_SetBits
Function Name
Function Description
Parameters
Return values
Notes
12.2.6.6
GPIO_ResetBits
Function Name
Function Description
Parameters
Return values
Notes
12.2.6.7
GPIO_WriteBit
240/584
GPIO output data port value.
None.
void GPIO_SetBits (
GPIO_Pin)
Sets the selected data port bits.
GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
GPIO_Pin : specifies the port bits to be written.
None.
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.
void GPIO_ResetBits (
GPIO_Pin)
Clears the selected data port bits.
GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
GPIO_Pin : specifies the port bits to be written.
None.
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.
DocID023800 Rev 1
GPIO_TypeDef *
GPIOx, uint16_t
GPIO_TypeDef *
GPIOx, uint16_t
UM1581
Need help?
Do you have a question about the STM32F31xx and is the answer not in the manual?