- 113 -
wai_flg
Wait for eventflag
pol_flg
Wait for eventflag(polling)
ipol_flg
Wait for eventflag(polling, handler only)
twai_flg
Wait for eventflag(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_flg( ID flgid, FLGPTN waiptn, MODE wfmode, FLGPTN *p_flgptn );
ER ercd = pol_flg( ID flgid, FLGPTN waiptn, MODE wfmode, FLGPTN *p_flgptn );
ER ercd = ipol_flg( ID flgid, FLGPTN waiptn, MODE wfmode, FLGPTN *p_flgptn );
ER ercd = twai_flg( ID flgid, FLGPTN waiptn, MODE wfmode, FLGPTN *p_flgptn,
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
flgid
ID number of the eventflag waited for
FLGPTN
waiptn
Wait bit pattern
MODE wfmode Wait
mode
FLGPTN
*p_flgptn
Pointer to the area to which bit pattern is returned when released from wait
TMO
tmout
Timeout value (for twai_flg)
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
FLGPTN
*p_flgptn
Pointer to the area to which bit pattern is returned when released from wait
[
[
[
[
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_flg FLGID, WAIPTN, WFMODE
pol_flg FLGID, WAIPTN, WFMODE
ipol_flg FLGID, WAIPTN, WFMODE
twai_flg FLGID, WAIPTN, WFMODE, TMO
z
z
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
FLGID
ID number of the eventflag waited for
WAIPTN
Wait bit pattern
WFMODE Wait
mode
TMO
Timeout value (for twai_flg)
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
R3R1
bit pattern is returned when released from wait
R2
ID number of the eventflag waited for
A1
Wait bit pattern
twai_sem
Register name
Content after service call is issued
R0 Error
code
R3R1
bit pattern is returned when released from wait
R2
ID number of the eventflag waited for
R6R4 Timeout
value
A1
Wait bit pattern