结构体 | |
struct | tagEvent |
类型定义 | |
typedef struct tagEvent | EVENT_CB_S |
typedef struct tagEvent * | PEVENT_CB_S |
函数 | |
UINT32 | LOS_EventInit (PEVENT_CB_S eventCB) |
Initialize an event control block. 更多... | |
UINT32 | LOS_EventPoll (UINT32 *eventID, UINT32 eventMask, UINT32 mode) |
Obtain an event specified by the event ID. 更多... | |
UINT32 | LOS_EventRead (PEVENT_CB_S eventCB, UINT32 eventMask, UINT32 mode, UINT32 timeout) |
Read an event. 更多... | |
UINT32 | LOS_EventWrite (PEVENT_CB_S eventCB, UINT32 events) |
Write an event. 更多... | |
UINT32 | LOS_EventClear (PEVENT_CB_S eventCB, UINT32 eventMask) |
Clear the event of the eventCB by a specified eventMask. 更多... | |
UINT32 | LOS_EventDestroy (PEVENT_CB_S eventCB) |
Destroy an event. 更多... | |
typedef struct tagEvent EVENT_CB_S |
Event control structure | 事件控制块数据结构
typedef struct tagEvent * PEVENT_CB_S |
UINT32 LOS_EventClear | ( | PEVENT_CB_S | eventCB, |
UINT32 | eventMask | ||
) |
Clear the event of the eventCB by a specified eventMask.
eventCB | [IN/OUT] Pointer to the event control block to be cleared. |
eventMask | [IN] Mask of the event to be cleared. |
#LOS_ERRNO_EVENT_PTR_NULL | Null pointer. |
#LOS_OK | The event is successfully cleared. |
Clear the event of the eventCB by a specified eventMask.
在文件 los_event.c 第 355 行定义.
UINT32 LOS_EventDestroy | ( | PEVENT_CB_S | eventCB | ) |
Destroy an event.
eventCB | [IN/OUT] Pointer to the event control block to be destroyed. |
#LOS_ERRNO_EVENT_PTR_NULL | Null pointer. |
#LOS_OK | The event is successfully cleared. |
Destroy an event.
在文件 los_event.c 第 334 行定义.
UINT32 LOS_EventInit | ( | PEVENT_CB_S | eventCB | ) |
Initialize an event control block.
eventCB | [IN/OUT] Pointer to the event control block to be initialized. |
#LOS_ERRNO_EVENT_PTR_NULL | Null pointer. |
#LOS_OK | The event control block is successfully initialized. |
Initialize an event control block.
在文件 los_event.c 第 95 行定义.
Obtain an event specified by the event ID.
eventID | [IN/OUT] Pointer to the ID of the event to be checked. |
eventMask | [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 eventID. |
mode | [IN] Event reading mode. The modes include LOS_WAITMODE_AND, LOS_WAITMODE_OR, LOS_WAITMODE_CLR. |
#LOS_ERRNO_EVENT_SETBIT_INVALID | Bit 25 of the event mask cannot be set because it is set to an error number. |
#LOS_ERRNO_EVENT_EVENTMASK_INVALID | The passed-in event mask is incorrect. |
#LOS_ERRNO_EVENT_FLAGS_INVALID | The passed-in event mode is invalid. |
#LOS_ERRNO_EVENT_PTR_NULL | The passed-in pointer is null. |
0 | The event expected by the user does not occur. |
UINT32 | The event expected by the user occurs. |
Obtain an event specified by the event ID.
在文件 los_event.c 第 297 行定义.
UINT32 LOS_EventRead | ( | PEVENT_CB_S | eventCB, |
UINT32 | eventMask, | ||
UINT32 | mode, | ||
UINT32 | timeout | ||
) |
Read an event.
eventCB | [IN/OUT] Pointer to the event control block to be checked. This parameter must point to valid memory. |
eventMask | [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 eventID. |
mode | [IN] Event reading mode. |
timeout | [IN] Timeout interval of event reading (unit: Tick). |
#LOS_ERRNO_EVENT_SETBIT_INVALID | Bit 25 of the event mask cannot be set because it is set to an error number. |
#LOS_ERRNO_EVENT_EVENTMASK_INVALID | The passed-in event reading mode is incorrect. |
#LOS_ERRNO_EVENT_READ_IN_INTERRUPT | The event is being read during an interrupt. |
#LOS_ERRNO_EVENT_FLAGS_INVALID | The event mode is invalid. |
#LOS_ERRNO_EVENT_READ_IN_LOCK | The event reading task is locked. |
#LOS_ERRNO_EVENT_PTR_NULL | The passed-in pointer is null. |
0 | The event expected by the user does not occur. |
UINT32 | The event expected by the user occurs. |
Read an event.
在文件 los_event.c 第 313 行定义.
UINT32 LOS_EventWrite | ( | PEVENT_CB_S | eventCB, |
UINT32 | events | ||
) |
Write an event.
eventCB | [IN/OUT] Pointer to the event control block into which an event is to be written. This parameter must point to valid memory. |
events | [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. |
Write an event.
在文件 los_event.c 第 318 行定义.