Everything

ref_flg

Outline
Reference eventflag state.
C format
 ER      ref_flg ( ID flgid, T_RFLG *pk_rflg );

Assembly format
 MOVW    BC, #LOWW(_pk_rflg)
 MOV     A, #flgid
 CALL    !!_ref_flg

Parameter(s)
I/O
Parameter
Description
I
 ID      flgid;
ID number of the eventflag to be referenced.
O
 T_RFLG  *pk_rflg;
Pointer to the packet returning the eventflag state.

Explanation
Stores eventflag state packet (such as existence of waiting tasks) of the eventflag specified by parameter flgid in the area specified by parameter pk_rflg.
Note For details about the eventflag state packet, refer to "12.5.3 Eventflag state packet".
Return value
Macro
Value
Description
E_OK
0
Normal completion.