Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 10
4.3 Application Setup Parameters
The kernel will use these parameters to setup an application. The application will not be initialized if the
kernel cannot allocate all the required system resources.
Application setup is done during power up for enabled ROM-based applications. During a communication
session, any application can be initialized under PC control. In both operations, the setup parameters
remain the same.
Most of the parameter settings indicated in this section (after some manipulation) will be stored in the
kernel to the Application Configuration Data and Application Control Block. Each application has its own
dedicated ACD and ACB.
4.3.1 Application Offset Mask
The Application Offset Mask specifies whether data specified in the parameter table needs to be converted
to the absolute address in heap memory. This is because the kernel will allocate available heap memory for
application system data as it is initialized in the system.
The Application Control Block addresses are all absolute memory addresses in internal memory.
This is the structure of the Application Offset Mask
Byte Bit Offset Mask Name
0 0
bCOREAppSystemDataOffset
0 = Absolute Address
1 = Relative Address
1
bCOREAppDatabaseDataOffset
0 = Absolute Address
1 = Relative Address
2
bCOREAppStateManagerOffset
0 = Absolute Address
1 = Relative Address
3
bCOREAppResourceHandlerOffset
0 = Absolute Address
1 = Relative Address
4
bCOREAppModeNameOffset
0 = Absolute Address
1 = Relative Address
5 Unused
6 Unused
7 Unused
4.3.2 Timer Resource Requirements
The application will specify the number of timer resources it would require for its operation. It will retain
ownership of the resource until it is removed from the system. When a resource is reserved, the kernel will
place the index of the resource (in order of allocation) at the start of the application system data area.
Byte Timer Resource Type Maximum
0 Time of Day Resource
1
4
1 Backup 2
2 Time Zone Check Resource 5
3 Timer Resource 3
4 Stopwatch Resource 2
5 Synchro Resource 1
1
The TOD application owns three TOD resources. The kernel owns one TOD resource.