aboutsummaryrefslogtreecommitdiffstats
blob: 588fa2ffff3f86b42e3a4e29ffa4b72fe6f1c028 (plain)
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
/**
 * @author generated by eTrice
 *
 * Header File of ProtocolClass FileReaderProtocol
 * 
 */

#ifndef _FILEREADERPROTOCOL_H_
#define _FILEREADERPROTOCOL_H_

#include "etDatatypes.h"
#include "modelbase/etPort.h"




/* message IDs */
enum FileReaderProtocol_msg_ids {
	FileReaderProtocol_MSG_MIN = 0,
	FileReaderProtocol_OUT_nextChar = 1,
	FileReaderProtocol_IN_getNextChar = 2,
	FileReaderProtocol_MSG_MAX = 3
};

/*--------------------- port structs and methods */
typedef etPort FileReaderProtocolPort;
typedef etReplPort FileReaderProtocolReplPort;


void FileReaderProtocolPort_nextChar(const FileReaderProtocolPort* self, char data);
void FileReaderProtocolReplPort_nextChar_broadcast(const FileReaderProtocolReplPort* self, char data);
void FileReaderProtocolReplPort_nextChar(const FileReaderProtocolReplPort* self, int idx, char data);


etInt32 FileReaderProtocolReplPort_getReplication(const FileReaderProtocolReplPort* self);
typedef etPort FileReaderProtocolConjPort;
typedef etReplPort FileReaderProtocolConjReplPort;


void FileReaderProtocolConjPort_getNextChar(const FileReaderProtocolConjPort* self);
void FileReaderProtocolConjReplPort_getNextChar_broadcast(const FileReaderProtocolConjReplPort* self);
void FileReaderProtocolConjReplPort_getNextChar(const FileReaderProtocolConjReplPort* self, int idx);


etInt32 FileReaderProtocolConjReplPort_getReplication(const FileReaderProtocolConjReplPort* self);

/*--------------------- debug helpers */

/* get message string for message id */
const char* FileReaderProtocol_getMessageString(int msg_id);


#endif /* _FILEREADERPROTOCOL_H_ */