| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 75 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 75 Page - STMicroelectronics |
|
75 / 229 page ![]() UM0097 Peripheral firmware overview 75/229 GPIO_WordWrite Example: This example sets all the GPIO0 port pins. { /*Set all the GPIO0 port pins */ GPIO_WordWrite(GPIO0, 0xFFFF); } 3.6 External Interrupts (XTI) The XTI driver may be used for several purposes, such as firmware IRQ generation, enabling and disabling interrupt lines, selecting the edge sensitivity, interrupt or Wake-up mode. The first section describes the data structure used in the XTI firmware library. The second section presents the XTI firmware library functions. 3.6.1 Data structures XTI register structure The XTI peripheral register structure XTI_TypeDef is defined in the file 71x_map.h as follows: typedef volatile struct { vu8 SR; u8 EMPTY1[7]; vu8 CTRL; u8 EMPTY2[3]; vu8 MRH; Function Name GPIO_WordWrite Function Prototype void GPIO_WordWrite (GPIO_TypeDef *GPIOx, u16 Port_Val); Behavior Description Writes a value in to the selected data port register. Input Parameter 1 GPIOx: selects the port. x can be 0, 1 or 2. Refer to GPIOx values on page 68 for details on the allowed values of this parameter. Input Parameter 2 Port_Val: holds the word value to be written to the selected data port. Output Parameter None Return Value None Required preconditions The port pin must be configured as GPIO_OUT_OD or as GPIO_OUT_PP. Called Functions None See also GPIO_BitWrite on page 73, GPIO_ByteWrite on page 74 |
|
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 |