Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 47d40fe59f5faa8e336ab41e67463de90813207d (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
/**
 * @author generated by eTrice
 *
 * Header File of ProtocolClass CommunicationProtocol
 * 
 */

#ifndef _COMMUNICATIONPROTOCOL_H_
#define _COMMUNICATIONPROTOCOL_H_

#include "etDatatypes.h"
#include "etPort.h"


#include "DataClass1.h"

/* message IDs */
enum {
	CommunicationProtocol_MSG_MIN = 0, 
	/* IDs for outgoing messages */
	CommunicationProtocol_OUT_receivedData = 1,
	/* IDs for incoming messages */
	CommunicationProtocol_IN_sendData = 2,
	CommunicationProtocol_IN_sendData2 = 3,
	/* error if msgID >= MSG_MAX */
	CommunicationProtocol_MSG_MAX = 4
};

/*--------------------- port classes */

typedef etPort CommunicationProtocolPort;

void CommunicationProtocolPort_receivedData(const CommunicationProtocolPort* self);





typedef etPort CommunicationProtocolConjPort;

void CommunicationProtocolConjPort_sendData(const CommunicationProtocolConjPort* self);
void CommunicationProtocolConjPort_sendData2(const CommunicationProtocolConjPort* self);





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

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



#endif /* _COMMUNICATIONPROTOCOL_H_ */

Back to the top