Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
31
sdk/include/osal/event.h
Normal file
31
sdk/include/osal/event.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef __OS_EVENT_H
|
||||
#define __OS_EVENT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum OS_EVENT_WMODE{
|
||||
OS_EVENT_WMODE_AND = BIT(0), //all bit has been set.
|
||||
OS_EVENT_WMODE_OR = BIT(1), //any bit has been set.
|
||||
OS_EVENT_WMODE_CLEAR = BIT(2), //clear bit after exit.
|
||||
};
|
||||
|
||||
struct os_event {
|
||||
uint32 magic;
|
||||
void *hdl;
|
||||
};
|
||||
typedef struct os_event os_event_t;
|
||||
|
||||
int32 os_event_init(os_event_t *evt);
|
||||
int32 os_event_del(os_event_t *evt);
|
||||
int32 os_event_set(os_event_t *evt, uint32 flags, uint32 *rflags);
|
||||
int32 os_event_clear(os_event_t *evt, uint32 flags, uint32 *rflags);
|
||||
int32 os_event_get(os_event_t *evt, uint32 *rflags);
|
||||
int32 os_event_wait(os_event_t *evt, uint32 flags, uint32 *rflags, uint32 mode, int32 timeout);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user