Electronic Components Datasheet Search
  English  ▼

X  

AN3128 Datasheet(PDF) 53 Page - STMicroelectronics

Part # AN3128
Description  This library is a firmware package which contains a collection
PDF  105 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3128 Datasheet(HTML) 53 Page - STMicroelectronics

Back Button AN3128 Datasheet HTML 49Page - STMicroelectronics AN3128 Datasheet HTML 50Page - STMicroelectronics AN3128 Datasheet HTML 51Page - STMicroelectronics AN3128 Datasheet HTML 52Page - STMicroelectronics AN3128 Datasheet HTML 53Page - STMicroelectronics AN3128 Datasheet HTML 54Page - STMicroelectronics AN3128 Datasheet HTML 55Page - STMicroelectronics AN3128 Datasheet HTML 56Page - STMicroelectronics AN3128 Datasheet HTML 57Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 53 / 105 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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