Everything

clr_flg

Outline
Clear eventflag.
C format
 ER      clr_flg ( ID flgid, FLGPTN clrptn );

Assembly format
 MOVW    BC, #clrptn
 MOV     A,  #flgid
 CALL    !!_clr_flg

Parameter(s)
I/O
Parameter
Description
I
 ID      flgid;
ID number of the eventflag to be cleared.
I
 FLGPTN  clrptn;
Bit pattern to clear (16 bits).

Explanation
This service call sets the result of ANDing the bit pattern set to the eventflag specified by parameter flgid and the bit pattern specified by parameter clrptn as the bit pattern of the target eventflag.
Note 1 This service call does not perform queuing of clear requests. If the bit pattern has been cleared, therefore, no processing is performed but it is not handled as an error.
Note 2 If the bit pattern set to the target eventflag is B'1100 and the bit pattern specified by parameter clrptn is B'1010 when this service call is issued, the bit pattern of the target eventflag is set to B'1110.
Note 3 This service call does not cancel tasks in the waiting state for an eventflag.
Return value
Macro
Value
Description
E_OK
0
Normal completion.