| Electronic Components Datasheet Search |
|
AN3128 Datasheet(PDF) 53 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 Datasheet(HTML) 53 Page - STMicroelectronics |
|
53 / 105 page ![]() AN3128 Multi-input embedded GUI library firmware Doc ID 16918 Rev 5 53/105 Example: int main(void) { ... Set_LastFlashMemoryAddress( 0x08040000 ); ... } The address of the Flash memory page, where the calibration parameters are saved, is calculated by subtracting from the last Flash memory address, the size of one memory page corresponding to “1024” (if a page is “1024 bytes”) and the size in bytes of a memory pointer, “4” (32-bit), just to align the address to the start of a memory page location. Therefore, if the Flash memory size is 256 KB and the ROM start address is 0x08000000, it is necessary to subtract 0x0400+0x0004=0x0404 (1024+4=1028 in decimal) from 0x08040000 that is the last Flash memory address. The result is: 0x0803EFD8. 4.1.33 CursorInit API global function The cursor is composed of two essential elements. The first is a data structure which gathers all the necessary variables for regular cursor operations including user-defined settings, and secondly a graphic appearance displayed on a screen, letting the user know about its position as a main purpose of it. In the meantime, the cursor seems to act as a graphic object, but it is different because it is not involved in the user events management. Although the actual implementation of the cursor can manage only the input from the joystick, its structure also supports the input from the mouse connected to a USB port (this feature is to be available in a future release). The cursor data structure gathers all variables needed for the regular functioning of service routines, such as coordinates, press state, pointer to the cursor bitmap mask, and array of background pixel color. This array, together with a pixels pointer mask serves as storage for pixels located behind an actual pointer mark. They must be saved before the cursor is displayed, in order to allow the removal of the cursor when just these stored pixels are employed to overdraw an old-positioned cursor. Therefore, no information is lost by cursor drawing (moving). The CursorInit function initializes a cursor, allocating the memory for the cursor data structure and afterwards allocating the memory for behind data pixels regarding the number of pixels listed in the pointer mark header. Table 38 describes the CursorInit function: Table 38. CursorInit API global function Name Description Function name CursorInit Function prototype ErrorStatus CursorInit (GL_uint8_t *PointerMark) Behavior description Initiate the cursor including allocating memory for structure and behind array. Input parameter {x} *PointerMark: pointer to the cursor mask Output parameter {x} None Return value None Required preconditions None Called functions No API/HAL layer functions |
|
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 |