UINT32 LOS_EventWrite ( PEVENT_CB_S  pstEventCB,
UINT32  uwEvents  
)

Write an event.

Description:
This API is used to write an event specified by the passed-in event mask into an event control block pointed to by pstEventCB.
注意:
  • To determine whether the LOS_EventRead API returns an event or an error code, bit 25 of the event mask is forbidden to be used.
参数:
参数名称 描述
pstEventCB  [IN/OUT] Pointer to the event control block into which an event is to be written. This parameter must point to valid memory.
uwEvents  [IN] Event mask to be written.
返回值:
返回值 描述
LOS_ERRNO_EVENT_SETBIT_INVALID  Bit 25 of the event mask cannot be set to an event because it is set to an error code.
LOS_ERRNO_EVENT_PTR_NULL  Null pointer.
LOS_OK  The event is successfully written.
Dependency:
  • los_event.h: the header file that contains the API declaration.
参见:
LOS_EventPoll | LOS_EventRead
自从:
Huawei LiteOS V100R001C00