Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b966af75371068b724ddb8c21465b27a8d321b54 (plain) (blame)
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
/**
 * @author generated by eTrice
 *
 * Instance File of Node node1 with SubSystem sys1
 * - instantiation of all actor instances and port instances
 * - configuration of data and connection of ports
 */

#include "messaging/etMessageService.h"
#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 and message buffers */
/* PhysicalThread1 */
static uint8 msgBuffer_PhysicalThread1[5 * 64]; /* msgBuffer_<threadname>[<msgpoolsize> * <msgblocksize>] */ 
static etMessageService msgService_PhysicalThread1;
/* PhysicalThread2 */
static uint8 msgBuffer_PhysicalThread2[3 * 64]; /* msgBuffer_<threadname>[<msgpoolsize> * <msgblocksize>] */ 
static etMessageService msgService_PhysicalThread2;

/* declarations of all ActorClass instances (const and variable structs) */

/* forward declaration of variable actor structs */
static Sender _LS_sys1_Sender;
static Receiver _LS_sys1_Receiver;

/* forward declaration of variable port structs */		


/* instance _LS_sys1_Sender */
static const Sender_const _LS_sys1_Sender_const = {
	/* Ports: {varData, msgService, peerAddress, localId} */
	{0, &msgService_PhysicalThread1, 104, 1} /* Port dataOut */
	
	/* data receive ports */
};
static Sender _LS_sys1_Sender = {
	&_LS_sys1_Sender_const,
	
	/* data send ports */
	
	/* attributes */
	0		/* counter */
	
	/* state and history are initialized in init fuction */
};

/* instance _LS_sys1_Receiver */
static const Receiver_const _LS_sys1_Receiver_const = {
	/* Ports: {varData, msgService, peerAddress, localId} */
	{0, &msgService_PhysicalThread2, 102, 1} /* Port dataIn */
	
	/* data receive ports */
};
static Receiver _LS_sys1_Receiver = {
	&_LS_sys1_Receiver_const,
	
	/* data send ports */
	
	/* attributes */
	{
		0		/* Attr1 */,
		{
			0		/* Attr1 */,
			0		/* Attr2 */,
			0		/* Attr3 */
		}		/* ComplexAttr */,
		0		/* Attr3 */
	}		/* attr1 */
	
	/* state and history are initialized in init fuction */
};

Back to the top