Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 18
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; SET STATE HANDLER
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
AppSetStateManager()
{
switch(CORECurrentEvent)
{
case STATEENTRY:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; STATE ENTRY PROCESSING
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//
// insert State Entry Processing Here
//
break;
case HOMEDEP:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; HOME DEPRESS PROCESSING
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Breg = DEFAULTSTATE;
CORE_REQ_STATE_CHANGE;
break;
case CWPULSE:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; CW PULSE PROCESSING
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//
// Insert CW Pulse Setting Here
//
break;
case CCWPULSE:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; CCW PULSE PROCESSING
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//
// Insert CCW Pulse Setting Here
//
break;
}
}
4.4.3 State Index
The application can have a maximum of 256 states. The first six states are predefined for common
operation among applications. The predefined states are shown in the table below.
Index Kernel Definition Description
0x00 COREBANNERSTATE The state to proceed on a mode entry.
0x01 COREDEFAULTSTATE The state to proceed to after a mode banner
state and for any mode change requests that
bypasses the mode banner state.
0x02 CORESET1BANNERSTATE Using the common crown handler, this is
the state that will be active when the crown
is placed in the SET 1 position.