Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a578244b39fd209b922a47c9b111645dcb6d113c (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 ACParser
 * 
 */

#ifndef _ACPARSER_H_
#define _ACPARSER_H_

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

#include "FileReaderProtocol.h"


typedef struct ACParser ACParser;

/* const part of ActorClass (ROM) */
typedef struct ACParser_const {
	/* simple ports */
	const FileReaderProtocolConjPort readerPort;
	
	/* data receive ports */

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


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

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

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

void ACParser_init(ACParser* self);

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


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


#endif /* _ACPARSER_H_ */

Back to the top