beautypg.com

Renesas Emulator System M3T-MR100 User Manual

Page 138

background image

- 122 -

rcv_dtq

Receive from data queue

prcv_dtq

Receive from data queue (polling)

iprcv_dtq

Receive from data queue (polling, handler only)

trcv_dtq

Receive from data queue (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_dtq( ID dtqid, VP_INT *p_data );
ER ercd = prcv_dtq( ID dtqid, VP_INT *p_data );
ER ercd = iprcv_dtq( ID dtqid, VP_INT *p_data );
ER ercd = trcv_dtq( ID dtqid, VP_INT *p_data, 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

dtqid

ID number of the data queue from which to receive

TMO tmout

Timeout

value

(trcv_dtq)

VP_INT

*p_data

Pointer to the start of the area in which received data 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

VP_INT

*p_data

Pointer to the start of the area in which received data 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_dtq DTQID
prcv_dtq DTQID
iprcv_dtq DTQID
trcv_dtq DTQID,TMO

z

z

P

P

a

a

r

r

a

a

m

m

e

e

t

t

e

e

r

r

s

s

DTQID

ID number of the data queue from which to receive

TMO Timeout

value

(trcv_dtq)

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_dtq,prcv_dtq,iprcv_dtq

Register name

Content after service call is issued

R0 Error

code

R3R1 Received

data

R2

Data queue ID number

trcv_dtq

Register name

Content after service call is issued

R0 Error

code

R3R1 Received

data

R2

ID number of the data queue from which to receive

R6R4 Timeout

value

[

[

[

[

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