Wiki source code of C Controller
Version 3.1 by Alexander Schulz-Rosengarten on 2014/08/20 10:52
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | |||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | = Components = | ||
6 | |||
7 | The component diagram below shows the architecture of generated and created Railway Controller. | ||
8 | |||
9 | [[image:attach:components.png]] | ||
10 | |||
11 | == SCCharts Contoroller == | ||
12 | |||
13 | {{noformat}} | ||
14 | scccontroller.h <compiled-sccchart>.c | ||
15 | {{/noformat}} | ||
16 | |||
17 | This component is the compiled Controller-SCChart. | ||
18 | |||
19 | The interface offers an the sequential synchronous tick function and additionally access to some internal variables to determine the internal state of the SCChart during execution. Furthermore the component uses the provided hostcode-interface to control the railway. | ||
20 | |||
21 | == Hostcode == | ||
22 | |||
23 | {{noformat}} | ||
24 | hostcode.h hostcode.c | ||
25 | {{/noformat}} | ||
26 | |||
27 | This component provides an interface to affect the railway and request events. It acts as wrapper around the railway API | ||
28 | |||
29 | Most controls and requests are forwarded to the controller maintaining the synchronous environment of the tick-function. Some controls which do not require this maintenance are directly forwarded to the railway API. | ||
30 | |||
31 | The hostcode header contains the general documentation for any hostcode call used in the SCChart. | ||
32 | |||
33 | == Controller == | ||
34 | |||
35 | {{noformat}} | ||
36 | controller.h defaults.h controller.c | ||
37 | {{/noformat}} | ||
38 | |||
39 | == State Monitor == | ||
40 | |||
41 | {{noformat}} | ||
42 | controller.h defaults.h controller.c | ||
43 | {{/noformat}} |