Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 76
Number Of Records
A 16-bit quantity that specifies the number of records in the database. The
number of records will also indicate the number of offset pointers.
Offset of Record #0
A 16-bit quantity that points to the base offset of Record #0.
OffsetOfRecord_0 = Offset(E) – Offset(D)
Offset of Record #1
A 16-bit quantity that points to the base offset of Record #1.
OffsetOfRecord_1 = Offset(F) – Offset(D)
Offset of Record #2
A 16-bit quantity that points to the base offset of Record #2.
OffsetOfRecord_2 = Offset(G) – Offset(D)
Offset of Record #3
A 16-bit quantity that points to the base offset of Record #3.
OffsetOfRecord_3 = Offset(H) – Offset(D)
4.26.1.4 Link-List Database Structure
Allocation Size (2-byte)
Double Linked-List Database Structure
Next
Record
Offset
2-byte
Previous
Record
Offset
2-byte
Record Data
Next
Record
Offset
2-byte
Previous
Record
Offset
2-byte
Record Data
Next
Record
Offset
2-byte
Previous
Record
Offset
2-byte
Record Data
Next
Record
Offset
2-byte
Previous
Record
Offset
2-byte
Record Data
Database Size (2-byte)
App Specific Header Size (1-byte)
Remaining App Specific Header
(variabale size up to 251 bytes)
The following section details how the fields in the database structures are computed. The diagram below
shows an example of a link-list access database with 3 records.