Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 26
By default, mode banner will request for a 1.5 second high resolution timeout before requesting a state
change to the default state. Switch depressions will cancel the mode banner timeout. Crown Set event will
not only cancel the mode banner timeout, but will proceed to the SET Banner State.
If the application supports password protection, then mode banner timeout event should make the password
state handler the foreground state. This will require the user to enter a 2-character password, verified by
the system before making the default state the foreground application.
If a password is currently required, it is advised that the banner state suspend popups. This will prevent a
popup from occurring during mode banner timeout and directly going to default state. Another method is
to make the password state the popdown state if a password is required. So on a popdown, the password
state becomes the foreground state.
Sample banner state handler:
optBannerStateManager()
{
switch( CORECurrentEvent )
{
case COREEVENT_STATEENTRY:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; MODE BANNER ENTRY
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// set popdown state if a popup occurs during timeout
CORE_SET_POPDOWN_STATE OPTDEFAULTSTATE;
// display the mode banner for the application
AReg = CORECurrentMode;
CORE_CALL_MODE_NAME;
// request for a 1.5 second timeout banner
CORE_REQ_TIMEOUT_HIRES TIMEOUTHIRES_1P5SEC;
break;
case OPTEVENT_STOPRESETDEPRESS:
case OPTEVENT_STARTSPLITDEPRESS:
case COREEVENT_CW_EDGE_TRAILING:
case COREEVENT_CCW_EDGE_TRAILING:
case COREEVENT_TIMEOUTDONE_HIGHRES:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; CANCEL MODE BANNER TIMEOUT EVENTS
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// Request for a state change to set state
BReg = OPTDEFAULTSTATE;
CORE_REQ_STATE_CHANGE;
break;
case COREEVENT_CROWN_SET:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; CROWN SET EVENT PROCESSING
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// Request for a state change to set banner state
BReg = OPTSETBANNERSTATE;
CORE_REQ_STATE_CHANGE;
break;
case OPTEVENT_MODEDEPRESS:
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// ; MODE SWITCH DEPRESS PROCESSING
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;