Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 71
4.26 Using Database Files Located in EEPROM
The kernel provides utilities to access records in databases stored in EEPROM. This is intended to
minimize the application code size by providing utilities to access records in the database.
The application is responsible for setting aside memory in the Application System Data to serve as a buffer
to hold a record from the database.
4.26.1 Database Structures and Access
The database provides utilities to handle 4 type of database structures. The database structure to use is
dependent on the requirements of the application.
4.26.1.1 Sequential Database Structure
Database Size (2-byte)
Sequential Access Database
App Specific Header Size (1-byte)
App Specific Header
(variable size up to 255 bytes)
Records
Allocation Size (2-byte)
Allocated Unused Space
The following section details how the fields in the database structures are computed. The diagram below
shows an example of a sequential access database.