UINT32 LOS_EventPoll ( UINT32 uwEventID,
UINT32  uwEventMask,
UINT32  uwMode  
)

Obtain an event specified by the event ID.

Description:
This API is used to check whether an event expected by the user occurs according to the event ID, event mask, and event reading mode, and process the event based on the event reading mode. The event ID must point to valid memory.
注意:
  • When the uwMode is LOS_WAITMODE_CLR, the puwEventID is passed-out.
  • Otherwise the puwEventID is passed-in.
参数:
参数名称 描述
uwEventID  [IN/OUT] Pointer to the ID of the event to be checked.
uwEventMask  [IN] Mask of the event expected to occur by the user, indicating the event obtained after it is logically processed that matches the ID pointed to by uwEventID.
uwMode  [IN] Event reading mode. The modes include LOS_WAITMODE_AND, LOS_WAITMODE_OR, LOS_WAITMODE_CLR.
返回值:
返回值 描述
The event expected by the user does not occur.
UINT32  The event expected by the user occurs.
Dependency:
  • los_event.h: the header file that contains the API declaration.
参见:
LOS_EventRead | LOS_EventWrite
自从:
Huawei LiteOS V100R001C00