WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_event.h 文件参考
#include "los_base.h"
#include "los_list.h"
los_event.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  tagEvent
 

宏定义

#define LOS_WAITMODE_AND   4U
 
#define LOS_WAITMODE_OR   2U
 
#define LOS_WAITMODE_CLR   1U
 
#define LOS_ERRNO_EVENT_SETBIT_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x00)
 
#define LOS_ERRNO_EVENT_READ_TIMEOUT   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x01)
 
#define LOS_ERRNO_EVENT_EVENTMASK_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x02)
 
#define LOS_ERRNO_EVENT_READ_IN_INTERRUPT   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x03)
 
#define LOS_ERRNO_EVENT_FLAGS_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x04)
 
#define LOS_ERRNO_EVENT_READ_IN_LOCK   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x05)
 
#define LOS_ERRNO_EVENT_PTR_NULL   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x06)
 
#define LOS_ERRNO_EVENT_READ_IN_SYSTEM_TASK   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x07)
 
#define LOS_ERRNO_EVENT_SHOULD_NOT_DESTORY   LOS_ERRNO_OS_ERROR(LOS_MOD_EVENT, 0x08)
 
#define LOS_EventCondRead(eventCB, eventCond, timeout)
 Read an event by condition.
 

类型定义

typedef struct tagEvent EVENT_CB_S
 
typedef struct tagEventPEVENT_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 events)
 Clear the event occurring in a specified task.
 
UINT32 LOS_EventDestroy (PEVENT_CB_S eventCB)
 Destroy an event.
 
UINT32 LOS_EventCondWrite (PEVENT_CB_S eventCB)
 Write an event by condition..
 
UINT32 EventCondRead (PEVENT_CB_S eventCB, UINT32 *timeout)
 

函数说明

◆ EventCondRead()

UINT32 EventCondRead ( PEVENT_CB_S  eventCB,
UINT32 timeout 
)
extern