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

#ifndef _RECEIVER_H_
#define _RECEIVER_H_

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

#include "DataClass1.h"
#include "CommunicationProtocol.h"


typedef struct Receiver Receiver;

/* const part of ActorClass (ROM) */
typedef struct Receiver_const {
	/* simple ports */
	const CommunicationProtocolPort dataIn;
	
	/* data receive ports */

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


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

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

	/*--------------------- attributes ---------------------*/
	DataClass1 attr1;
	
	
		/* state machine variables */
		etInt16 state;
		etInt16 history[RECEIVER_HISTORY_SIZE];
};

void Receiver_init(Receiver* self);

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


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


#endif /* _RECEIVER_H_ */

Back to the top