
CHAPTER 13 SERVICE CALLS
User’s Manual U14833EJ2V0UM
264
Bit 2 specifies whether the created cyclic handler saves the phase cycphs to be explained below. If TA_PHS is
specified, the phase is saved. By issuing sta_cyc after the handler has been created, the phase cycphs
becomes valid when the handler is activated.
If two or more attributes are specified at the same time, set the logical sum of the attribute values to cycatr.
Figure 13-11. Cyclic Handler Attribute
cycatr
15
8
7
0
TA_ASM (1): Described in assembly language
TA_HLNG (0): Described in C language
TA_STA (1): Handler is created in operating status
TA_PHS (1): Phase cycphs is saved
exinf
Sets user-defined information on the cyclic handler to be created. This value is passed to the cyclic handler
when it has been created.
cychdr
Specifies the activation address of the cyclic handler to be created.
cyctim
Specifies the interval in milliseconds at which the created cyclic handler is to be activated.
cycphs
Specifies the phase of the cyclic handler to be created in milliseconds. This means that the created cyclic
handler is activated cycphs [milliseconds] after cre_cyc has been issued. This phase can be saved by specifying
TA_PHS as the cyclic handler attribute. In other words, the activation timing of the cyclic handler can be fixed,
regardless of changes in status after the cyclic handler has been created.
cycphs is meaningless if neither TA_STA nor TA_PHS is given as a handler attribute.
gp
Specifies the base address (gp) of PID (Position Independent Data) used by the cyclic handler to be created. Set
NULL if the cyclic handler does not use PID.
tp
This is a reserved area. Always set NULL to this area. However, a value other than NULL is ignored even if set.
[Differences from
μ
ITRON3.0]
1.
Change of terminology and service call name
“Defining cyclic handler”
→
“Creating cyclic handler”
“Cyclically activated handler definition number”
→
“Cyclic handler ID number”
def_cyc
→
cre_cyc
“Activated status”
→
“Cyclic handler status” or “status”
Contents of status: “ON status”
→
“Operating (STA) status”
“OFF status”
→
“Stop (STP) status”
An activation phase can be specified for the cyclic handler.
Explicit specification by an attribute is not necessary even when the cyclic handler uses PID.
2.
3.