- 130 -
rcv_mbx Receive from mailbox prcv_mbx Receive from mailbox (polling) iprcv_mbx Receive from mailbox (polling, handler only) trcv_mbx Receive from mailbox (with timeout)
[
[[
[
C
C
L
La
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
ER ercd = rcv_mbx( ID mbxid, T_MSG **ppk_msg );
ER ercd = prcv_mbx( ID mbxid, T_MSG **ppk_msg );
ER ercd = iprcv_mbx( ID mbxid, T_MSG **ppk_msg );
ER ercd = trcv_mbx( ID mbxid, T_MSG **ppk_msg, TMO tmout );
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
ID mbxid ID number of the mailbox from which to receive
TMO tmout Timeout value (for trcv_mbx)
T_MSG **ppk_msg Pointer to the start of the area in which received message is
stored
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) or error code
T_MSG **ppk_msg Pointer to the start of the area in which received message is
stored
[
[[
[
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
rcv_mbx MBXID
prcv_mbx MBXID
iprcv_mbx MBXID
trcv_mbx MBXID, TMO
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
MBXID ID number of the mailbox from which to receive
TMO Timeout value (for trcv_mbx)
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
rcv_mbx,prcv_mbx,iprcv_mbx
Register name Content after service call is issued
R0 Error code
R2 ID number of the mailbox from which to receive
A1 Received message
trcv_mbx
Register name Content after service call is issued
R0 Error code
R2 ID number of the mailbox from which to receive
R6R4 Timeout value
A1 Received message
[
[[
[
E
Er
rr
ro
or
r
c
co
od
de
e
]
]]
]
E_RLWAI Forced release from waiting
E_TMOUT Polling failure or timeout or timed out