![](http://pdfasset.owneriq.net/9/fb/9fbfa399-be01-4490-812f-c791db5ef399/9fbfa399-be01-4490-812f-c791db5ef399-bg7a.png)
- 108 -
5.4 Synchronization & Communication Function (Eventflag)
Specifications of the eventflag function of MR100 are listed in Table 5.7.
T
able 5.7 Specifications of the Eventflag Function
No. Item Content
1 Event0flag ID 1-255
2 Number of bits comprising eventflag 32 bits
TA_TFIFO: Waiting tasks enqueued in order of FIFO
TA_TPRI: Waiting tasks enqueued in order of priority
TA_WSGL: Multiple tasks cannot be kept waiting
TA_WMUL: Multiple tasks can be kept waiting
3 Eventflag attribute
TA_CLR: Bit pattern cleared when waiting task is released
Table 5.8 List of Eventflag Function Service Call
System State
No. Service Call Function
T N E D U L
1 set_flg
[S][B]
O O O O
2 iset_flg
[S][B]
Sets eventflag
O O O O
3 clr_flg
[S][B]
O O O O
4 iclr_flg
Clears eventflag
O O O O
5 wai_flg
[S][B]
Waits for eventflag O O O
6 pol_flg
[S][B]
O O O O
7 ipol_flg
[S]
Waits for eventflag (polling)
O O O O
8 twai_flg
[S]
Waits for eventflag (with timeout) O O O
9 ref_flg O O O O
10 iref_flg
References eventflag status
O O O O
Notes:
• [S]: Standard profile service calls
[B]: Basic profile service calls
• Each sign within " System State " is a following meaning.
♦ T: Can be called from task context
♦ N: Can be called from non-task context
♦ E: Can be called from dispatch-enabled state
♦ D: Can be called from dispatch-disabled state
♦ U: Can be called from CPU-unlocked state
♦ L: Can be called from CPU-locked state