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

#ifndef _COMMUNICATIONPROTOCOL_H_
#define _COMMUNICATIONPROTOCOL_H_

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




/* message IDs */
enum CommunicationProtocol_msg_ids {
	CommunicationProtocol_MSG_MIN = 0,
	CommunicationProtocol_OUT_receivedData = 1,
	CommunicationProtocol_IN_sendData = 2,
	CommunicationProtocol_MSG_MAX = 3
};

/*--------------------- port structs and methods */
typedef etPort CommunicationProtocolPort;
typedef etReplPort CommunicationProtocolReplPort;


void CommunicationProtocolPort_receivedData(const CommunicationProtocolPort* self);
void CommunicationProtocolReplPort_receivedData_broadcast(const CommunicationProtocolReplPort* self);
void CommunicationProtocolReplPort_receivedData(const CommunicationProtocolReplPort* self, int idx);


etInt32 CommunicationProtocolReplPort_getReplication(const CommunicationProtocolReplPort* self);
typedef etPort CommunicationProtocolConjPort;
typedef etReplPort CommunicationProtocolConjReplPort;


void CommunicationProtocolConjPort_sendData(const CommunicationProtocolConjPort* self);
void CommunicationProtocolConjReplPort_sendData_broadcast(const CommunicationProtocolConjReplPort* self);
void CommunicationProtocolConjReplPort_sendData(const CommunicationProtocolConjReplPort* self, int idx);


etInt32 CommunicationProtocolConjReplPort_getReplication(const CommunicationProtocolConjReplPort* self);

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

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


#endif /* _COMMUNICATIONPROTOCOL_H_ */

Back to the top