-
Notifications
You must be signed in to change notification settings - Fork 0
/
kcg_types.c
152 lines (131 loc) · 4.24 KB
/
kcg_types.c
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/* $**************** KCG Version 6.4 (build i21) ****************
** Command: kcg64.exe -config C:/WindRiver/workspace/TR4/TL/config.txt
** Generation date: 2017-10-11T17:54:54
*************************************************************$ */
#include "kcg_types.h"
#ifdef kcg_use_array_bool_5
kcg_bool kcg_comp_array_bool_5(array_bool_5 *kcg_c1, array_bool_5 *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 5; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_array_bool_5 */
#ifdef kcg_use_array_bool_4
kcg_bool kcg_comp_array_bool_4(array_bool_4 *kcg_c1, array_bool_4 *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 4; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_array_bool_4 */
#ifdef kcg_use_actionneurs_global_Architecture
kcg_bool kcg_comp_actionneurs_global_Architecture(
actionneurs_global_Architecture *kcg_c1,
actionneurs_global_Architecture *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 19; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_actionneurs_global_Architecture */
#ifdef kcg_use_capteurs_global_Architecture
kcg_bool kcg_comp_capteurs_global_Architecture(
capteurs_global_Architecture *kcg_c1,
capteurs_global_Architecture *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 18; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_capteurs_global_Architecture */
#ifdef kcg_use_mode_fonct_global_Architecture
kcg_bool kcg_comp_mode_fonct_global_Architecture(
mode_fonct_global_Architecture *kcg_c1,
mode_fonct_global_Architecture *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 2; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_mode_fonct_global_Architecture */
#ifdef kcg_use_capteurs_entree_global_Architecture
kcg_bool kcg_comp_capteurs_entree_global_Architecture(
capteurs_entree_global_Architecture *kcg_c1,
capteurs_entree_global_Architecture *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 9; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_capteurs_entree_global_Architecture */
#ifdef kcg_use_capteurs_sortie_global_Architecture
kcg_bool kcg_comp_capteurs_sortie_global_Architecture(
capteurs_sortie_global_Architecture *kcg_c1,
capteurs_sortie_global_Architecture *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 1; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_capteurs_sortie_global_Architecture */
#ifdef kcg_use_type_piece_global_Architecture
kcg_bool kcg_comp_type_piece_global_Architecture(
type_piece_global_Architecture *kcg_c1,
type_piece_global_Architecture *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 1; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_type_piece_global_Architecture */
#ifdef kcg_use_cmd_entree_global_Architecture
kcg_bool kcg_comp_cmd_entree_global_Architecture(
cmd_entree_global_Architecture *kcg_c1,
cmd_entree_global_Architecture *kcg_c2)
{
kcg_bool kcg_equ;
kcg_int kcg_ci;
kcg_equ = kcg_true;
for (kcg_ci = 0; kcg_ci < 7; kcg_ci++) {
kcg_equ = kcg_equ & ((*kcg_c1)[kcg_ci] == (*kcg_c2)[kcg_ci]);
}
return kcg_equ;
}
#endif /* kcg_use_cmd_entree_global_Architecture */
/* $**************** KCG Version 6.4 (build i21) ****************
** kcg_types.c
** Generation date: 2017-10-11T17:54:54
*************************************************************$ */