| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 72 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 72 Page - STMicroelectronics |
|
72 / 229 page ![]() Peripheral firmware overview UM0097 72/229 GPIO_WordRead Example: This example illustrates how to read the GPIO0 port pin values. { u16 wValue; /* Get all P0 pin value */ wValue = GPIO_WordRead (GPIO0); } Function Name GPIO_WordRead Function Prototype u16 GPIO_WordRead (GPIO_TypeDef *GPIOx); Behavior Description Reads the value of the specified GPIOx PD data port register and returns its value. Input Parameter GPIOx: selects the port to be read. x can be 0, 1 or 2. Refer to GPIOx values on page 68 for details on the allowed values of this parameter. Output Parameter None Return Value The specified port data value Required preconditions The port pin must be configured as IN_TRI_TTL or as IN_TRI_CMOS mode. Called Functions None See also GPIO_BitRead on page 70, GPIO_ByteRead on page 71 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |