Revision 408a606c inc/urt_core.h
inc/urt_core.h | ||
---|---|---|
40 | 40 |
/* DATA STRUCTURES AND TYPES */ |
41 | 41 |
/******************************************************************************/ |
42 | 42 |
|
43 |
/** |
|
44 |
* @brief core |
|
45 |
*/ |
|
46 |
typedef struct urt_core |
|
47 |
{ |
|
48 |
urt_node_t* _nodes; |
|
49 |
urt_osEventSource_t* _evtSource; |
|
50 |
urt_osMutex_t _lock; |
|
51 |
urt_status_t _status; |
|
52 |
#if (URT_CFG_PUBSUB_ENABLED) |
|
53 |
urt_topic_t* _topics; |
|
54 |
#endif /* URT_CFG_PUBSUB_ENABLED */ |
|
55 |
#if (URT_CFG_RPC_ENABLED) |
|
56 |
urt_service_t* _services; |
|
57 |
#endif /* URT_CFG_RPC_ENABLED */ |
|
58 |
}urt_core_t; |
|
59 |
|
|
60 |
static urt_core_t core; |
|
61 |
|
|
62 | 43 |
/******************************************************************************/ |
63 | 44 |
/* MACROS */ |
64 | 45 |
/******************************************************************************/ |
... | ... | |
73 | 54 |
|
74 | 55 |
void urtCoreInit(void); |
75 | 56 |
urt_status_t urtCoreGetStatus(void); |
57 |
urt_osMutex_t urtCoreGetMutex(void); |
|
58 |
urt_osEventSource_t* urtCoreGetEvtSource(void); |
|
59 |
urt_node_t* urtCoreGetNodes(void); |
|
76 | 60 |
void urtCoreStartNodes(void); |
77 | 61 |
urt_status_t urtCoreSynchronizeNodes(urt_node_t* node); |
78 | 62 |
urt_status_t urtCoreStopNodes(urt_status_t reason); |
Also available in: Unified diff