- 103 -
wai_sem Acquire
semaphore
resource
pol_sem
Acquire semaphore resource (polling)
ipol_sem Acquire
semaphore
resource (polling, handler only)
twai_sem
Acquire semaphore resource(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 = wai_sem( ID semid );
ER ercd = pol_sem( ID semid );
ER ercd = ipol_sem( ID semid );
ER ercd = twai_sem( ID semid, 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
semid
Semaphore ID number to be acquired
TMO
tmout
Timeout value (for twai_sem)
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
[
[
[
[
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
wai_sem SEMID
pol_sem SEMID
ipol_sem SEMID
twai_sem SEMID,TMO
z
z
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
SEMID
Semaphore ID number to be acquired
TMO Timeout
value(twai_sem)
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
wai_sem,pol_sem,ipol_sem
Register name
Content after service call is issued
R0 Error
code
R2
Semaphore ID number to be acquired
twai_sem
Register
name
Content after service call is issued
R0 Error
code
R2
Semaphore ID number to be acquired
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