Statistics
| Branch: | Revision:

urtware / inc / urt_core.h @ 33aa05c5

History | View | Annotate | Download (3.69 KB)

1
/*
2
µRtWare is a lightweight publish/subscribe middleware for real-time
3
applications. It was developed as part of the software habitat for the
4
Autonomous Mini Robot [1] (AMiRo) but can be used for other purposes as well.
5

6
Copyright (C) 2018..2020  Thomas Schöpping et al.
7

8
This program is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12

13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17

18
You should have received a copy of the GNU General Public License
19
along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
*/
21

    
22
#ifndef URTWARE_CORE_H
23
#define URTWARE_CORE_H
24

    
25
#include <urtware.h>
26

    
27
/******************************************************************************/
28
/* CONSTANTS                                                                  */
29
/******************************************************************************/
30

    
31
/******************************************************************************/
32
/* SETTINGS                                                                   */
33
/******************************************************************************/
34

    
35
/******************************************************************************/
36
/* CHECKS                                                                     */
37
/******************************************************************************/
38

    
39
/******************************************************************************/
40
/* DATA STRUCTURES AND TYPES                                                  */
41
/******************************************************************************/
42

    
43
/******************************************************************************/
44
/* MACROS                                                                     */
45
/******************************************************************************/
46

    
47
/******************************************************************************/
48
/* EXTERN DECLARATIONS                                                        */
49
/******************************************************************************/
50

    
51
#if defined(__cplusplus)
52
extern "C" {
53
#endif /* defined(__cplusplus) */
54

    
55
  void urtCoreInit(void);
56
  urt_status_t urtCoreGetStatus(void);
57
  urt_osEventMask_t urtCoreGetEventMask(void);
58
  urt_osMutex_t* urtCoreGetMutex(void);
59
  urt_osEventSource_t* urtCoreGetEvtSource(void);
60
  void urtCoreStartNodes(void);
61
  urt_status_t urtCoreSynchronizeNodes(urt_node_t* node);
62
  urt_status_t urtCoreStopNodes(urt_status_t reason);
63
  urt_node_t* urtCoreGetNodes(void);
64
  urt_status_t urtCoreAddNode(urt_node_t* node);
65

    
66
#if (URT_CFG_PUBSUB_ENABLED == true)
67
  urt_status_t urtCoreAddTopic(urt_topic_t* topic);
68
  urt_topic_t* urtCoreGetTopic(urt_topicid_t id);
69
#endif /* URT_CFG_PUBSUB_ENABLED */
70

    
71
#if (URT_CFG_RPC_ENABLED == true)
72
  urt_status_t urtCoreAddService(urt_service_t* service);
73
  urt_service_t* urtCoreGetService(urt_serviceid_t id);
74
#endif /* URT_CFG_RPC_ENABLED */
75

    
76
#if (URT_CFG_PUBSUB_QOS_DEADLINECHECKS == true)
77
  urt_osTimerCallback_t urtCoreCallbackDefault(void* params)
78
#endif /* URT_CFG_PUBSUB_QOS_DEADLINECHECKS */
79

    
80
#if defined(__cplusplus)
81
}
82
#endif /* defined(__cplusplus) */
83

    
84
/******************************************************************************/
85
/* INLINE FUNCTIONS                                                           */
86
/******************************************************************************/
87

    
88
#endif /* URTWARE_CORE_H */