Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 12
0 Application Code Size
1 Application System Data Size
2 Application Database Size
For EEPROM-based applications, the code size and database size define the amount of EEPROM memory
to be allocated. Application System Data size will be the amount of memory from the internal memory
heap allocated for the ASD.
Although the code size for EEPROM-based apps can be larger than the wristapp overlay area size, the
common code section and the state handler code must fit within the overlay area limitations (900 bytes).
4.3.5 Application Configuration Data
The application will specify through the Application Configuration Data how the application is going to
behave in the kernel when initialized or executed. It also provides additional information to the kernel
other system requirements.
Byte Bit Bit Name Description
0 0
bCOREACDReserved
Restricted. Kernel Use Only.
1
bCOREACDCodeLocation
0 = Internal Memory
1 = External Memory
2
bCOREACDDatabaseDataLocation
0 = Internal Memory
1 = External Memory
3
bCOREACDCodeInvalid
1 = Code is invalid
4
bCOREACDDatabaseModified
1 = Database modified by user
5
bCOREACDInvalidDatabase
1 = Database is invalid/not present
6
bCOREACDPasswordRequired
1 = Password required for access
7
bCOREACDUserSpecifiedModeName
1 = Mode name located in
EEPROM
The table below shows some predefined configuration data definitions for WristApps.
Configuration Byte Application
COREACDEEPROMAPP
CODE external. ADD external.
4.3.6 Application ID
This two-byte parameter is a unique identifier of an application. The application type is used during an
application peek operation where the kernel searches for the first matching application for peeking.
The first byte indicates the application type, while the second byte indicates an instance of that application.
By default, all ROM based application have an instance value of 0x00. If another instance of a ROM
based application is initialized, the system will increment the Instance Number by 1.
Byte Description
0 Application Type
1 Application Instance Number
Code Application Type
000H COREAPPTYPESYSTEM
002H COREAPPTYPEOPTION
011H COREAPPTYPEDATE
020H COREAPPTYPECHRONO
021H COREAPPTYPETIMER