EasyManua.ls Logo

ST STM32F31xx - Page 239

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
Loading...
UM1581
General-purpose I/Os (GPIO)
DocID023800 Rev 1
239/584
12.2.6.2 GPIO_ReadInputData
Function Name
uint16_t GPIO_ReadInputData ( GPIO_TypeDef * GPIOx)
Function Description
Reads the specified input port pin.
Parameters
GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
Return values
The input port pin value.
Notes
None.
12.2.6.3 GPIO_ReadOutputDataBit
Function Name
uint8_t GPIO_ReadOutputDataBit ( GPIO_TypeDef * GPIOx,
uint16_t GPIO_Pin)
Function Description
Reads the specified output 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 read.
Return values
The output port pin value.
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.4 GPIO_ReadOutputData
Function Name
uint16_t GPIO_ReadOutputData ( GPIO_TypeDef * GPIOx)
Function Description
Reads the specified GPIO output data port.
Parameters
GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.

Table of Contents

Related product manuals