数据结构 |
| struct |
tagEvent |
| |
Event control structure 更多...
|
宏定义 |
| #define |
LOS_WAITMODE_AND (4) |
| |
Event reading mode: The task waits for all its expected events to occur.
|
| #define |
LOS_WAITMODE_OR (2) |
| |
Event reading mode: The task waits for any of its expected events to occur.
|
| #define |
LOS_WAITMODE_CLR (1) |
| |
Event reading mode: The event flag is immediately cleared after the event is read.
|
| #define |
LOS_ERRNO_EVENT_SETBIT_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x00) |
| |
Bit 25 of the event mask cannot be set to an event because it is set to an error code.
|
| #define |
LOS_ERRNO_EVENT_READ_TIMEOUT LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x01) |
| |
Event reading error code: Event reading times out.
|
| #define |
LOS_ERRNO_EVENT_EVENTMASK_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x02) |
| |
Event reading error code: The EVENTMASK input parameter value is valid.
|
| #define |
LOS_ERRNO_EVENT_READ_IN_INTERRUPT LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x03) |
| |
Event reading error code: The event is being read during an interrupt.
|
| #define |
LOS_ERRNO_EVENT_FLAGS_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x04) |
| |
Event reading error code: The uwFlags input parameter value used in the event reading API is invalid.
|
| #define |
LOS_ERRNO_EVENT_READ_IN_LOCK LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x05) |
| |
Event reading error code: The task is locked and is unable to read the event.
|
| #define |
LOS_ERRNO_EVENT_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x06) |
| |
Event reading error code: Null pointer.
|
| #define |
LOS_ERRNO_EVENT_NOT_INITIALIZED LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x07) |
| |
Event reading error code: no initialized.
|
| #define |
LOS_ERRNO_EVENT_SHOULD_NOT_DESTORY LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x08) |
| |
Event reading error code: should not be distory.
|
类型定义 |
| typedef struct tagEvent |
EVENT_CB_S |
| |
Event control structure
|
| typedef struct tagEvent * |
PEVENT_CB_S |
函数 |
| UINT32 |
LOS_EventInit (PEVENT_CB_S pstEventCB) |
| |
Initialize an event control block.
|
| UINT32 |
LOS_EventPoll (UINT32 *uwEventID, UINT32 uwEventMask, UINT32 uwMode) |
| |
Obtain an event specified by the event ID.
|
| UINT32 |
LOS_EventRead (PEVENT_CB_S pstEventCB, UINT32 uwEventMask, UINT32 uwMode, UINT32 uwTimeOut) |
| |
Read an event.
|
| UINT32 |
LOS_EventWrite (PEVENT_CB_S pstEventCB, UINT32 uwEvents) |
| |
Write an event.
|
| UINT32 |
LOS_EventClear (PEVENT_CB_S pstEventCB, UINT32 uwEvents) |
| |
Clear the event occurring in a specified task.
|
| UINT32 |
LOS_EventDestory (PEVENT_CB_S pstEventCB) |
| |
Destroy a event.
|