- 82 -
ref_tst Reference task status (simplified version) iref_tst Reference task status (simplified version, handler only)
[
[[
[
C
C
L
La
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
ER ercd = ref_tst( ID tskid, T_RTST *pk_rtst );
ER ercd = iref_tst( ID tskid, T_RTST *pk_rtst );
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
ID tskid ID number of the target task
T_RTST *pk_rtst Pointer to the packet to which task status is returned
z
z
R
Re
et
tu
ur
rn
n
P
Pa
ar
ra
am
me
et
te
er
rs
s
ER ercd Terminated normally (E_OK)
Contents of pk_rtsk
typedef struct t_rtst{
STAT tskstat +0 2 Task status
STAT tskwait +2 2 Cause of wait
} T_RTST;
[
[[
[
A
As
ss
se
em
mb
bl
ly
y
l
la
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
.include mr100.inc
ref_tst TSKID, PK_RTST
iref_tst TSKID, PK_RTST
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
TSKID ID number of the target task
PK_RTST Pointer to the packet to which task status is returned
z
z
R
Re
eg
gi
is
st
te
er
r
c
co
on
nt
te
en
nt
ts
s
a
af
ft
te
er
r
s
se
er
rv
vi
ic
ce
e
c
ca
al
ll
l
i
is
s
i
is
ss
su
ue
ed
d
Register name Content after service call is issued
R0 Error code
A0 ID number of the target task
A1 Pointer to the packet to which task status is returned
[
[[
[
E
Er
rr
ro
or
r
c
co
od
de
e
]
]]
]
None