Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 398079be984a8edb1ba46d35a4afe683258dc4e7 (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 etSystemProtocol
 * 
 */

#ifndef _ETSYSTEMPROTOCOL_H_
#define _ETSYSTEMPROTOCOL_H_

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

ET_EXTERN_C_BEGIN

/* message IDs */
enum etSystemProtocol_msg_ids {
	etSystemProtocol_MSG_MIN = 0,
	etSystemProtocol_IN_poll = 1,
	etSystemProtocol_IN_terminate = 2,
	etSystemProtocol_MSG_MAX = 3
};

/*--------------------- port structs and methods */
typedef etPort etSystemProtocolPort;
typedef etReplPort etSystemProtocolReplPort;




etInt32 etSystemProtocolReplPort_getReplication(const etSystemProtocolReplPort* self);
typedef etPort etSystemProtocolConjPort;
typedef etReplPort etSystemProtocolConjReplPort;


void etSystemProtocolConjPort_poll(const etSystemProtocolConjPort* self);
void etSystemProtocolConjReplPort_poll_broadcast(const etSystemProtocolConjReplPort* self);
void etSystemProtocolConjReplPort_poll(const etSystemProtocolConjReplPort* self, int idx);
void etSystemProtocolConjPort_terminate(const etSystemProtocolConjPort* self);
void etSystemProtocolConjReplPort_terminate_broadcast(const etSystemProtocolConjReplPort* self);
void etSystemProtocolConjReplPort_terminate(const etSystemProtocolConjReplPort* self, int idx);


etInt32 etSystemProtocolConjReplPort_getReplication(const etSystemProtocolConjReplPort* self);

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

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

ET_EXTERN_C_END

#endif /* _ETSYSTEMPROTOCOL_H_ */

Back to the top