Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 36
0
bKReserved
Resource is owned
1
bKActive
Resource is active
2
Unused
3
Unused
4
Unused
5
Unused
6
bKGeneratePopup
Generate a popup when counter reaches zero.
7
bKGenerateEvent
Generate an event when counter reaches zero.
4.6.5 Time Zone Check Resource
The Time Zone Check Resource is used to check data stored in the resource against a reference time zone.
This is primarily used for applications such as the alarm and appointment types. The application is
responsible for determining the time data to store in the resource for checking.
The reference time zone discussed here is usually the primary time zone. But, if the time zone checking
has been suspended for a long period of time (set mode, multiple popups, etc.), the kernel will grab a copy
of the current primary time zone data and stores it into a popup clock resource. The popup clock resource
will now become the new reference time zone. When the watch is in a position to initiate a time zone
check, it will compare it against the reference time zone. The reference time zone is updated a minute
every second until it catches up with the primary time zone. Any matching entry will be popped up. Once
it exceeds the primary time zone data, the kernel disables the popup clock and makes the primary time zone
as the reference time zone.
The resource will generally check for an exact match between hour and minute data. The user can also
specify that the resource check for matching month, date, year or a combination of these entries.
The application must provide code in its Resource Handler to process the event COREEVENT_REFRESH to
put in the best entry in the time zone check resource. The application must use the reference timezone data.
By convention, any application that changes data in the TOD resource must request the Kernel to execute
all resource handlers with the event COREEVENT_REFRESH.
TZC Resource Data Structure:
Offset Data Type Description
0 Application Index Index of application owner
1 Resource Flag Specifies status of the resource
2 Update Flag Specifies if month, date and year data are required for
an exact match
3 Minute Minute data in BCD format
4 Hour Hour data in BCD format
5 Date Date data in BCD format
6 Month Month in BCD format
7 Year (Lo Byte) Year data (low byte) in BCD format
8 Year (Hi Byte) Year data (high byte) in BCD format
Resource flag bit definitions:
Bit Name Description
0
bKReserved
Resource is owned
1
bKActive
Resource is active
2
Unused
3
Unused
4
Unused