| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 229 page ![]() Document and library rules UM0097 8/229 typedef volatile signed long vs32; typedef volatile signed short vs16; typedef volatile signed char vs8; ● bool type is defined in the file 71x_type.h as: typedef enum { FALSE = 0, TRUE = !FALSE } bool; ● FlagStatus type is defined in the file 71x_type.h. Two values can be assigned to this variable: SET or RESET. typedef enum { RESET = 0, SET = !RESET } FlagStatus; ● FunctionalState type is defined in the file 71x_type.h. Two values can be assigned to this variable: ENABLE or DISABLE. typedef enum { DISABLE = 0, ENABLE = !DISABLE } FunctionalState; ● Pointers to peripherals are used to access the peripheral control registers. Peripheral pointers point to data structures that represent the mapping of the peripheral control registers. A structure should be defined for each peripheral in 71x_map.h file. The example below illustrates the GPIO register structure declaration: typedef volatile struct { vu16 PC0; vu16 EMPTY1; vu16 PC1; vu16 EMPTY2; vu16 PC2; vu16 EMPTY3; vu16 PD; } GPIO_TypeDef; Register names are the register acronyms written in upper case for each peripheral. EMPTYi (i is an integer that indexes the reserved field) replaces a reserved field and is never used. Sometimes an enumeration is needed for a peripheral. This enumeration is called PPP_Registers and is declared in the file 71x_ppp.h, e.g.: typedef enum { GPIO_PC0 = 0x00, GPIO_PC1 = 0x04, GPIO_PC2 = 0x08, GPIO_PD = 0x0C, } GPIO_Registers; |
|
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 |