Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 68
at a time, saving the current results of the partial search and requesting the system to call back the
background handler when the system is not busy with other higher priority task. When the system is not
busy, it will continue processing the background task reloading the previous results and starts processing
the next 10 records. If not yet complete, it will continue requesting a background task.
To request for a background task, the following macros are used:
Background Task Macros
CORE_REQ_BACKGROUND_TASK
CORE_REQ_BACKGROUND_TASK_WITH_PRIORITYCHECK
CORE_REQ_BACKGROUND_TASK_FOR_APPTYPE
CORE_REQ_BACKGROUND_TASK_FOR_APPTYPE_WITH_PRIORITYCHECK
CORE_REQ_BACKGROUND_TASK_FOR_PTZBASEDAPPS
CORE_CLEAR_BACKGROUND_APPLICATION_TASK
CORE_CLEAR_ALL_BACKGROUND_APPLICATION_TASK
The following are the events that can be used to request a background task:
Events Used for the Background Task Macros
COREEVENT_REFRESH_START
COREEVENT_REFRESH_CONTINUE
COREEVENT_PEEK_SEARCH_START
COREEVENT_PEEK_SEARCH_CONTINUE
COREEVENT_DAY_UPDATE
COREEVENT_DAY_UPDATE_START
COREEVENT_DAY_UPDATE_CONTINUE
COREEVENT_HOUR_UPDATE
COREEVENT_HOUR_UPDATE_START
COREEVENT_HOUR_UPDATE_CONTINUE
4.25 Application Requests
During state handler processing, an application can send out a system request to the kernel. These requests
will be acknowledged and processed by the kernel in either two places: during state processing or after state
processing. The table below shows the system requests available to the application.
State Transition:
Request Description
CORE_REQ_MODE_CHANGE
Requests a mode change to a specific mode.
CORE_REQ_MODE_CHANGE_NEXT
Requests a mode change to the next mode
defined in the mode list with wraparound.
If application is active for more than 4
seconds, it will go to the Primary Mode.
If the mode change to the Primary mode was
done through a MODE switch depress, then
if the user holds the MODE for more than 1
second, the kernel will treat it as a Peek to
Primary Mode. On release of the MODE
switch, the system will go back to the old
mode.