Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 96
The figure below shows the file list for the counter wristapp source files:
5.10 Coding the WristApp
5.10.1 Header File
Most of the items in the header files are redefinitions to the system equates provided by the M851 OS. The
equates are redefined to make the label more descriptive of the operation or function. For example, the
switch event equate COREEVENT_SWITCH1DEPRESS in the counter set state handler could be redefined
as CNT_CHANGE_TO_NEXT_FIELD_SETTING to indicate a function to change to the next setting field
position.
;==============================================================================
; STATE REDEFINITIONS
;==============================================================================
CNTBANNERSTATE equ COREBANNERSTATE
CNTDEFAULTSTATE equ COREDEFAULTSTATE
CNTSETBANNERSTATE equ CORESETBANNERSTATE
CNTSETSTATE equ CORESETSTATE
;==============================================================================
; EVENT REDEFINITIONS
;==============================================================================
CNT_STATEENTRY equ COREEVENT_STATEENTRY
CNT_TIMEOUTDONELOWRES equ COREEVENT_TIMEOUTDONE_LOWRES