| |
Read an event.
-
Description:
-
This API is used to block or schedule a task that reads an event of which the event control block, event mask, reading mode, and timeout information are specified.
-
注意:
-
- An error code and an event return value can be same. To differentiate the error code and return value, bit 25 of the event mask is forbidden to be used.
-
参数:
-
|
参数名称 |
描述 |
|
pstEventCB |
[IN/OUT] Pointer to the event control block to be checked. This parameter must point to valid memory. |
|
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. |
|
uwTimeOut |
[IN] Timeout interval of event reading (unit: Tick). |
-
返回值:
-
-
Dependency:
-
- los_event.h: the header file that contains the API declaration.
-
参见:
-
LOS_EventPoll |
LOS_EventWrite
-
自从:
-
Huawei LiteOS V100R001C00
|