WE310F5  39.00.000
m2mb_os_ev.h File Reference

OS event prototypes. More...

Go to the source code of this file.

#define M2MB_OS_EV_INVALID   0
 
#define M2MB_OS_EV_INVALID_ATTR   0
 
#define m2mb_os_ev_setAttrItem_(h, args, ...)   m2mb_os_ev_setAttrItem( h, CMDS_ARGS( args ) )
 
enum  M2MB_OS_EV_SEL_CMD_E {
  M2MB_OS_EV_SEL_CMD_CREATE_ATTR,
  M2MB_OS_EV_SEL_CMD_DEL_ATTR,
  M2MB_OS_EV_SEL_CMD_NAME,
  M2MB_OS_EV_SEL_CMD_USRNAME,
  M2MB_OS_EV_SEL_CMD_SUSPENDED_COUNT,
  M2MB_OS_EV_SEL_CMD_1ST_SUSP,
  M2MB_OS_EV_SEL_CMD_CURRENT_BITS_EVENT,
  M2MB_OS_EV_SEL_CMD_END
}
 
enum  M2MB_OS_EV_SET_OPT_E {
  M2MB_OS_EV_SET = 0,
  M2MB_OS_EV_CLEAR = 2,
  M2MB_OS_EV_SET_OPT_END
}
 
enum  M2MB_OS_EV_GET_OPT_E {
  M2MB_OS_EV_GET_ANY = 0,
  M2MB_OS_EV_GET_ANY_AND_CLEAR,
  M2MB_OS_EV_GET_ALL,
  M2MB_OS_EV_GET_ALL_AND_CLEAR,
  M2MB_OS_EV_GET_OPT_END
}
 
typedef struct M2MB_OS_EV_HANDLE_TAG * M2MB_OS_EV_HANDLE
 
typedef struct M2MB_OS_EV_ATTR_HANDLE_TAG * M2MB_OS_EV_ATTR_HANDLE
 
M2MB_OS_RESULT_E m2mb_os_ev_init (M2MB_OS_EV_HANDLE *pEvHandle, M2MB_OS_EV_ATTR_HANDLE *pEvAttr)
 Application Event Set Creation. More...
 
M2MB_OS_RESULT_E m2mb_os_ev_deinit (M2MB_OS_EV_HANDLE eveHandle)
 Application Event deinit or deletion. More...
 
M2MB_OS_RESULT_E m2mb_os_ev_set (M2MB_OS_EV_HANDLE evHandle, UINT32 evBits, M2MB_OS_EV_SET_OPT_E optSet)
 Set bits of event in a specified event. More...
 
M2MB_OS_RESULT_E m2mb_os_ev_get (M2MB_OS_EV_HANDLE evHandle, UINT32 reqEvBits, M2MB_OS_EV_GET_OPT_E optGet, UINT32 *pCurEvBits, UINT32 timeout)
 Get an application event. More...
 
M2MB_OS_RESULT_E m2mb_os_ev_setAttrItem (M2MB_OS_EV_ATTR_HANDLE *pEvAttr, UINT8 nCmds,...)
 Set specific attribute for event init or creation. More...
 
M2MB_OS_RESULT_E m2mb_os_ev_getItem (M2MB_OS_EV_HANDLE evHandle, M2MB_OS_EV_SEL_CMD_E selCmd, MEM_W *pOut, void *pIn)
 Get specific properties of the event. More...
 
M2MB_OS_RESULT_E m2mb_os_ev_setItem (M2MB_OS_EV_HANDLE evHandle, M2MB_OS_EV_SEL_CMD_E selCmd, void *pIn)
 Set specific properties of the event. More...
 

Detailed Description

OS event prototypes.

we866e4/epl/inc/rtos/m2mb_os_ev.h

Basic functions for OS event are provided

Note
Dependencies:
"#include m2mb_types.h"
"#include m2mb_os_types.h"
Author
Alessandro Papagno
Date
03/03/2017

Definition in file m2mb_os_ev.h.