Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 78
Next Pointer #0
A 16-bit quantity that points to the base offset of the next record (Record
#1).
NextPointer_0 = Offset(E) – Offset(A)
Previous Pointer #1
A 16-bit quantity that points to the base offset of the previous record
(Record #0).
PrevPointer_1 = Offset(D) – Offset(A)
Next Pointer #1
A 16-bit quantity that points to the base offset of the next record (Record
#2).
NextPointer_1 = Offset(F) – Offset(A)
Previous Pointer #2
A 16-bit quantity that points to the base offset of the previous record
(Record #1).
PrevPointer_1 = Offset(E) – Offset(A)
Next Pointer #2
A 16-bit quantity that points to the base offset of the next record (Record
#2). Since this is the last record in the list, its value is 0x0000.
NextPointer_1 = 0x0000
4.26.2 Database Usage Macros
For opening and closing a database file:
DB_OPEN_FILE
DB_OPEN_FILE_LINK_LIST
DB_CLOSE_FILE
For writing to a sequential access or to a link list database record:
DB_WRITE_RECORD
DB_WRITE_RECORD_WITHOFFSET
DB_READ_RECORD
DB_READ_RECORD_WITHOFFSET
For writing to a fixed-sized random access database record:
DB_WRITE_RECORD_RANDOMFIX
DB_WRITE_RECORD_WITHOFFSET_RANDOMFIX
DB_READ_RECORD_RANDOMFIX
DB_READ_RECORD_WITHOFFSET_RANDOMFIX
For writing to a variable-sized random access database record:
DB_WRITE_RECORD_RANDOMVAR
DB_WRITE_RECORD_WITHOFFSET_RANDOMVAR
DB_READ_RECORD_RANDOMVAR