beautypg.com

Renesas Emulator System M3T-MR100 User Manual

Page 146

background image

- 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

L

a

a

n

n

g

g

u

u

a

a

g

g

e

e

A

A

P

P

I

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

P

a

a

r

r

a

a

m

m

e

e

t

t

e

e

r

r

s

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

R

e

e

t

t

u

u

r

r

n

n

P

P

a

a

r

r

a

a

m

m

e

e

t

t

e

e

r

r

s

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

A

s

s

s

s

e

e

m

m

b

b

l

l

y

y

l

l

a

a

n

n

g

g

u

u

a

a

g

g

e

e

A

A

P

P

I

I

]

]

]

]

.include mr100.inc
rcv_mbx MBXID
prcv_mbx MBXID
iprcv_mbx MBXID
trcv_mbx MBXID, TMO

z

z

P

P

a

a

r

r

a

a

m

m

e

e

t

t

e

e

r

r

s

s

MBXID

ID number of the mailbox from which to receive

TMO

Timeout value (for trcv_mbx)

z

z

R

R

e

e

g

g

i

i

s

s

t

t

e

e

r

r

c

c

o

o

n

n

t

t

e

e

n

n

t

t

s

s

a

a

f

f

t

t

e

e

r

r

s

s

e

e

r

r

v

v

i

i

c

c

e

e

c

c

a

a

l

l

l

l

i

i

s

s

i

i

s

s

s

s

u

u

e

e

d

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

E

r

r

r

r

o

o

r

r

c

c

o

o

d

d

e

e

]

]

]

]

E_RLWAI

Forced release from waiting

E_TMOUT

Polling failure or timeout or timed out