VSF Documented
Macros
__vsf_task_common.h File Reference
#include "./kernel/vsf_kernel_cfg.h"
#include "../vsf_eda.h"

Go to the source code of this file.

Macros

#define __vsf_pt_begin_common(__state)
 
#define __vsf_pt_raw_next_common(__state)    (__state) = (__COUNTER__ - count_offset + 1) >> 1
 
#define __vsf_pt_raw_entry_common(__state, ...)
 
#define __vsf_pt_entry_common(__state, ...)
 
#define __vsf_pt_end_common()   } vsf_eda_return();
 
#define __vsf_pt_wait_cond_common(__state, ...)
 
#define __vsf_pt_wfe_common(__state, __evt)    __vsf_pt_wait_cond_common(__state, (evt == __evt))
 
#define __vsf_pt_func_common(__name)   vsf_pt_func_##__name
 
#define __vsf_pt_common(__name)   pt_cb_##__name
 
#define __def_vsf_pt_common(__name, ...)
 
#define __declare_vsf_pt_common(__name)
 
#define __implement_vsf_pt_common(__name, __arg0)    void __vsf_pt_func_common(__name)(__arg0, vsf_evt_t evt)
 
#define __extern_vsf_pt_common(__name, __arg0)    extern void __vsf_pt_func_common(__name)(__arg0, vsf_evt_t evt);
 

Macro Definition Documentation

◆ __vsf_pt_begin_common

#define __vsf_pt_begin_common (   __state)
Value:
enum { \
count_offset = __COUNTER__ + 1, \
}; \
switch ((__state)) { \
case __COUNTER__ - count_offset:

◆ __vsf_pt_raw_next_common

#define __vsf_pt_raw_next_common (   __state)     (__state) = (__COUNTER__ - count_offset + 1) >> 1

◆ __vsf_pt_raw_entry_common

#define __vsf_pt_raw_entry_common (   __state,
  ... 
)
Value:
__VA_ARGS__; \
case (__COUNTER__ - count_offset) >> 1:

◆ __vsf_pt_entry_common

#define __vsf_pt_entry_common (   __state,
  ... 
)
Value:
__VA_ARGS__ \
)
#define __vsf_pt_raw_entry_common(__state,...)
Definition __vsf_task_common.h:42
#define __vsf_pt_raw_next_common(__state)
Definition __vsf_task_common.h:40

◆ __vsf_pt_end_common

#define __vsf_pt_end_common ( )    } vsf_eda_return();

◆ __vsf_pt_wait_cond_common

#define __vsf_pt_wait_cond_common (   __state,
  ... 
)
Value:
do { \
evt = VSF_EVT_INVALID; \
__vsf_pt_entry_common(__state); \
if (!(__VA_ARGS__)) { \
return ; \
} \
} while (0)
@ VSF_EVT_INVALID
compatible with fsm_rt_err
Definition vsf_eda.h:596

◆ __vsf_pt_wfe_common

#define __vsf_pt_wfe_common (   __state,
  __evt 
)     __vsf_pt_wait_cond_common(__state, (evt == __evt))

◆ __vsf_pt_func_common

#define __vsf_pt_func_common (   __name)    vsf_pt_func_##__name

◆ __vsf_pt_common

#define __vsf_pt_common (   __name)    pt_cb_##__name

◆ __def_vsf_pt_common

#define __def_vsf_pt_common (   __name,
  ... 
)
Value:
struct __vsf_pt_common(__name) { \
__VA_ARGS__ \
}; \
struct __name { \
implement(vsf_pt_t) \
implement_ex(__vsf_pt_common(__name), param) \
};
#define __vsf_pt_common(__name)
Definition __vsf_task_common.h:72
Definition vsf_eda.h:834
#define __name
Definition hci_transport_aic8800.c:552

◆ __declare_vsf_pt_common

#define __declare_vsf_pt_common (   __name)
Value:
typedef struct __name __name; \
typedef struct __vsf_pt_common(__name) __vsf_pt_common(__name);

◆ __implement_vsf_pt_common

#define __implement_vsf_pt_common (   __name,
  __arg0 
)     void __vsf_pt_func_common(__name)(__arg0, vsf_evt_t evt)

◆ __extern_vsf_pt_common

#define __extern_vsf_pt_common (   __name,
  __arg0 
)     extern void __vsf_pt_func_common(__name)(__arg0, vsf_evt_t evt);