beautypg.com

Renesas Emulator System M3T-MR100 User Manual

Page 160

background image

- 144 -

pget_mpl

Aquire variable-size memory block (polling)

[

[

[

[

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 = pget_mpl( ID mplid, UINT blksz, VP *p_blk );

z

z

P

P

a

a

r

r

a

a

m

m

e

e

t

t

e

e

r

r

s

s

ID

mplid

ID number of the target Variable-size Memory pool to be acquired

UINT

blksz

Memory size to be acquired (in bytes)

VP

*p_blk

Pointer to the start address of the acquired variable memory

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

*p_blk

Pointer to the start address of the acquired variable memory

[

[

[

[

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
pget_mpl MPLID,BLKSZ

z

z

P

P

a

a

r

r

a

a

m

m

e

e

t

t

e

e

r

r

s

s

MPLID

ID number of the target Variable-size Memory pool to be acquired

BLKSZ

Memory size to be acquired (in bytes)

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

Register name

Content after service call is issued

R0 Error

code

R3R1

Memory size to be acquired

R2

ID number of the target Variable-size Memory pool to be acquired

[

[

[

[

E

E

r

r

r

r

o

o

r

r

c

c

o

o

d

d

e

e

]

]

]

]

E_TMOUT

No memory block