- 144 -
pget_mpl Aquire variable-size memory block (polling)
[
[[
[
C
C
L
La
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
ER ercd = pget_mpl( ID mplid, UINT blksz, VP *p_blk );
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
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
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
VP *p_blk Pointer to the start address of the acquired variable memory
[
[[
[
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
pget_mpl MPLID,BLKSZ
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
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
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
R3R1 Memory size to be acquired
R2 ID number of the target Variable-size Memory pool to be acquired
[
[[
[
E
Er
rr
ro
or
r
c
co
od
de
e
]
]]
]
E_TMOUT No memory block