1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/**
* @author generated by eTrice
*
* Instance File of SubSystemClass SubSys
* - instantiation of all actor instances and port instances
* - configuration of data and connection of ports
*/
#include "platform/etMemory.h"
/* include all used ActorClasses */
#include "Receiver.h"
#include "Sender.h"
/* include all used ProtcolClasses */
#include "CommunicationProtocol.h"
/* instantiation of message services */
/* PhysicalThread1 */
// TODO: generate sizes
static uint8 msgBuffer_PhysicalThread1[MESSAGE_POOL_MAX*MESSAGE_BLOCK_SIZE];
static etMessageService msgService_PhysicalThread1;
/* PhysicalThread2 */
static uint8 msgBuffer_PhysicalThread2[MESSAGE_POOL_MAX*MESSAGE_BLOCK_SIZE];
static etMessageService msgService_PhysicalThread2;
/* declarations of all ActorClass instances (const and variable structs) */
/* forward declaration of variable actor structs */
static Sender _SubSys_Sender;
static Receiver _SubSys_Receiver;
/* forward declaration of variable port structs */
/* instance _SubSys_Sender */
static const Sender_const _SubSys_Sender_const = {
/* Ports: {varData, msgService, peerAddress, localId} */
{0,&msgService_PhysicalThread2, 104, 1} /* Port dataOut */
/* data receive ports */
};
static Sender _SubSys_Sender = {
&_SubSys_Sender_const,
/* data send ports */
/* attributes */
/* state and history are initialized in init fuction */
};
/* instance _SubSys_Receiver */
static const Receiver_const _SubSys_Receiver_const = {
/* Ports: {varData, msgService, peerAddress, localId} */
{0,&msgService_PhysicalThread1, 102, 1} /* Port dataIn */
/* data receive ports */
};
static Receiver _SubSys_Receiver = {
&_SubSys_Receiver_const,
/* data send ports */
/* attributes */
{
0,
{
0,
0,
0
},
0
}
, /* attr1 */
/* state and history are initialized in init fuction */
};
|