Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 231c3556c01747971dc1fb4015aee66e889f4d95 (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
/**
 * @author generated by eTrice
 *
 * Header File of ActorClass Sender
 * 
 */

#ifndef _SENDER_H_
#define _SENDER_H_

#include "etDatatypes.h"
#include "messaging/etMessage.h"

#include "CommunicationProtocol.h"


typedef struct Sender Sender;

/* const part of ActorClass (ROM) */
typedef struct Sender_const {
	/* simple ports */
	const CommunicationProtocolConjPort dataOut;
	
	/* data receive ports */

	/* saps */
	
	/* replicated ports */
	
	/* services */
} Sender_const;


/* constant for state machine data */
#define SENDER_HISTORY_SIZE 2

/* variable part of ActorClass (RAM) */
struct Sender {
	const Sender_const* const constData;
	
	/* data send ports */

	/*--------------------- attributes ---------------------*/
	
	
		/* state machine variables */
		etInt16 state;
		etInt16 history[SENDER_HISTORY_SIZE];
};

void Sender_init(Sender* self);

void Sender_receiveMessage(void* self, void* ifitem, const etMessage* msg);


/*--------------------- operations ---------------------*/


#endif /* _SENDER_H_ */

Back to the top