clr_flg

iclr_flg

Outline

Clear eventflag.

C format

 ER      clr_flg (ID flgid, FLGPTN clrptn);
 ER      iclr_flg (ID flgid, FLGPTN clrptn);
Parameter(s)

I/O

Parameter

Description

I

 ID      flgid;
ID number of the eventflag to be cleared.

I

 FLGPTN  clrptn;
Bit pattern to clear.



Explanation

This service call sets the result of logical AND operating 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 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'1000.

Return value

Macro

Value

Description

E_OK

0

Normal completion.

E_ID

-18

Invalid ID number.

- flgid < 0x0

- flgid > Maximum ID number

E_CTX

-25

Context error.

- This service call was issued in the CPU locked state.

E_NOEXS

-42

Non-existent object.

- Specified eventflag is not registered.