Statistics
| Branch: | Revision:

urtware / doc / classdiagrams / primitives.uml @ 4d55cea4

History | View | Annotate | Download (2.49 KB)

1 4d55cea4 Thomas Schöpping
/'
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
/'### INTRO ##################################################################'/
23
24
@startuml
25
26
title **µRtWare**\nPrimitives
27
28
!include ../functions.iuml
29
30
/'### ENTITIES ###############################################################'/
31
32
!startsub ENTITIES
33
34
/' Node synchronization type. '/
35
$type("urt_nodestage_t") {
36
  .. URT_CFG_NODESTAGE_WIDTH == 8 ..
37
  uin8_t
38
  .. URT_CFG_NODESTAGE_WIDTH == 16 ..
39
  uint16_t
40
  .. URT_CFG_NODESTAGE_WIDTH == 32 ..
41
  uint32_t
42
  .. URT_CFG_NODESTAGE_WIDTH == 64 ..
43
  uint64_t
44
}
45
46
/' Topic ID type. '/
47
$type("urt_topicid_t") {
48
  .. URT_CFG_TOPICID_WIDTH == 8 ..
49
  uin8_t
50
  .. URT_CFG_TOPICID_WIDTH == 16 ..
51
  uint16_t
52
  .. URT_CFG_TOPICID_WIDTH == 32 ..
53
  uint32_t
54
  .. URT_CFG_TOPICID_WIDTH == 64 ..
55
  uint64_t
56
}
57
58
/' Service ID type. '/
59
$type("urt_serviceid_t") {
60
  .. URT_CFG_SERVICEID_WIDTH == 8 ..
61
  uin8_t
62
  .. URT_CFG_SERVICEID_WIDTH == 16 ..
63
  uint16_t
64
  .. URT_CFG_SERVICEID_WIDTH == 32 ..
65
  uint32_t
66
  .. URT_CFG_SERVICEID_WIDTH == 64 ..
67
  uint64_t
68
}
69
70
/' Well defined error codes. '/
71
$type("urt_status_t") {
72
  URT_STATUS_OK = 0x0..0
73
  URT_STATUS_WARNING = 0x4..0
74
  URT_STATUS_ERROR = 0x8..0
75
}
76
77
/' Temporal delay in microseconds. '/
78
$type("urt_delay_t") {
79
  .. URT_CFG_DELAY_WIDTH == 32 ..
80
  uint32_t
81
  .. URT_CFG_DELAY_WIDTH == 64 ..
82
  uint64_t
83
}
84
85
/' Just a function for debugging. '/
86
$function("urt_debug") {
87
    'Checks the condition in debug mode.
88
  + {method} urtDebugAssert(condition : bool) : void
89
}
90
91
!endsub
92
93
/'### DEPENDENCIES & LAYOUT ##################################################'/
94
95
!startsub DEPENDENCIES
96
!endsub
97
98
/'### OUTRO ##################################################################'/
99
100
@enduml