M851 WristApp Design Guide Rev 1.2
Timex Corporation 87
5.2.3 Default State
The default state should handle the following
cases:
• Handle the system event STATEENTRY and do
the following:
• Display counter data
• Handle the MODESWITCHDEPRESS to go to
the next mode.
• Handle STARTSPLITDEPRESS. This will
either increment or decrement the counter. Stop
when boundary conditions are reaced.
• Handle STOPRESETDEPRESS to go into a reset
operation:
• Display HOLD TO RESET
• Allow switch releases to be passed as
events
• Request 2 second hi-res timeout
• Handle STOPRESETRELEASE:
• Clear display
• Display counter data
• Handle the event TIMEOUTDONE_HIGHRES:
• Clear current counter to 0.
• Display counter data.
• Handle CROWN_SET and request a state change
to the set banner state index.
5.2.4 Set Banner State
The set banner state should handle the following
cases:
• Handle the system event STATEENTRY and do
the following:
• Do not allow popups to occur.
• Request for a 1.5 second hi-res timeout
• Handle the MODESWITCHDEPRESS to go to the
set state.
• Handle STARTSPLITDEPRESS to go to the set
state.
• Handle STOPRESETDEPRESS to go to the set
state.
• When hi-res timeout expires, proceed to the set
state.
• Handle CROWN_HOME and request a state
change to the default state index.
5.2.5 Set State