Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation iii
4.4.6.1 Display Clearing On State Change ................................................................................... 25
4.4.7 Mode Banner State Handler ................................................................................................. 25
4.4.8 Default State Handler........................................................................................................... 28
4.4.9 Set Banner State Handler ..................................................................................................... 28
4.4.10 Set State Handler.................................................................................................................. 29
4.4.11 Popup State Handler............................................................................................................. 30
4.4.11.1 Special Time Zone Check Popup Processing................................................................ 30
4.4.12 Password Entry State Handler.............................................................................................. 30
4.5 BUILT-IN STATE HANDLERS .......................................................................................................... 30
4.6 TIMER RESOURCE USAGE.............................................................................................................. 33
4.6.1 Display Update Events.......................................................................................................... 33
4.6.2 Popup and Event Generation................................................................................................ 33
4.6.3 Time Of Day Resource.......................................................................................................... 34
4.6.4 Backup Resource .................................................................................................................. 35
4.6.5 Time Zone Check Resource................................................................................................... 36
4.6.6 Timer Resource..................................................................................................................... 37
4.6.7 Stopwatch Resource.............................................................................................................. 39
4.6.8 Synchro Resource ................................................................................................................. 40
4.7 APPLICATION SYSTEM DATA......................................................................................................... 41
4.8 APPLICATION DATABASE DATA .................................................................................................... 42
4.9 SYSTEM VARIABLES...................................................................................................................... 42
4.10 COMMON VARIABLES.................................................................................................................... 44
4.10.1 Foreground Use.................................................................................................................... 45
4.10.2 Background Handler Use ..................................................................................................... 45
4.11 BACKGROUND HANDLER............................................................................................................... 45
4.11.1 Kernel Variables................................................................................................................... 48
4.12 DISPLAY SERVICES........................................................................................................................ 48
4.12.1 Character Sets ...................................................................................................................... 49
4.12.2 Displaying Numbers ............................................................................................................. 55
4.12.3 Displaying Alphanumeric Characters .................................................................................. 56
4.12.4 Displaying Messages ............................................................................................................ 56
4.12.5 Clearing Display Regions..................................................................................................... 57
4.13 MODE BANNER.............................................................................................................................. 58
4.13.1 Handling............................................................................................................................... 58
4.13.2 Banner Message Format....................................................................................................... 58
4.14 MODE CHANGE ............................................................................................................................. 59
4.15 STATE CHANGE ............................................................................................................................. 59
4.16 ICONS ............................................................................................................................................ 60
4.17 GENERIC BLINK SERVICES............................................................................................................. 62
4.18 SCROLL SERVICES ......................................................................................................................... 62
4.19 PASSWORD PROTECTION ............................................................................................................... 63
4.20 SETTING ........................................................................................................................................ 64
4.20.1 CW/CCW Event Swapping.................................................................................................... 64
4.20.2 Ring/Crown Acceleration ..................................................................................................... 65
4.21 TIMEOUT SERVICES ....................................................................................................................... 66
4.22 POPUPS.......................................................................................................................................... 66
4.23 APPLICATION PEEK SERVICES ....................................................................................................... 67
4.24 BACKGROUND TASKS.................................................................................................................... 67
4.25 APPLICATION REQUESTS ............................................................................................................... 68
4.26 USING DATABASE FILES LOCATED IN EEPROM........................................................................... 71
4.26.1 Database Structures and Access........................................................................................... 71
4.26.1.1 Sequential Database Structure ...................................................................................... 71
4.26.1.2 Fixed-Sized Random Database Structure...................................................................... 72
4.26.1.3 Variable-Sized Random Database Structure................................................................. 74
4.26.1.4 Link-List Database Structure ........................................................................................ 76
4.26.2 Database Usage Macros....................................................................................................... 78