Newer
Older
// Auto-generated template file: command_ECHO32.tpl.c
// Generation timestamp: 2021-06-21 19:42:34.864200
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#include "../typedefs.h"
#include "../communication.h"
#include "../hardware.h"
err_t command_ECHO32(void) {
// Command: ECHO32
// Description: Echo (32 bytes)
//
// Request code: CMDCODE_ECHO32_REQ
// Response code: CMDCODE_ECHO32_REQ
// Request payload (length in bytes is 32):
// field #0 (1 byte) [type: uint8_t ] : VALUE_0 (Echoed byte)
// field #1 (1 byte) [type: uint8_t ] : VALUE_1 (Echoed byte)
// field #2 (1 byte) [type: uint8_t ] : VALUE_2 (Echoed byte)
// field #3 (1 byte) [type: uint8_t ] : VALUE_3 (Echoed byte)
// field #4 (1 byte) [type: uint8_t ] : VALUE_4 (Echoed byte)
// field #5 (1 byte) [type: uint8_t ] : VALUE_5 (Echoed byte)
// field #6 (1 byte) [type: uint8_t ] : VALUE_6 (Echoed byte)
// field #7 (1 byte) [type: uint8_t ] : VALUE_7 (Echoed byte)
// field #8 (1 byte) [type: uint8_t ] : VALUE_8 (Echoed byte)
// field #9 (1 byte) [type: uint8_t ] : VALUE_9 (Echoed byte)
// field #10 (1 byte) [type: uint8_t ] : VALUE_10 (Echoed byte)
// field #11 (1 byte) [type: uint8_t ] : VALUE_11 (Echoed byte)
// field #12 (1 byte) [type: uint8_t ] : VALUE_12 (Echoed byte)
// field #13 (1 byte) [type: uint8_t ] : VALUE_13 (Echoed byte)
// field #14 (1 byte) [type: uint8_t ] : VALUE_14 (Echoed byte)
// field #15 (1 byte) [type: uint8_t ] : VALUE_15 (Echoed byte)
// field #16 (1 byte) [type: uint8_t ] : VALUE_16 (Echoed byte)
// field #17 (1 byte) [type: uint8_t ] : VALUE_17 (Echoed byte)
// field #18 (1 byte) [type: uint8_t ] : VALUE_18 (Echoed byte)
// field #19 (1 byte) [type: uint8_t ] : VALUE_19 (Echoed byte)
// field #20 (1 byte) [type: uint8_t ] : VALUE_20 (Echoed byte)
// field #21 (1 byte) [type: uint8_t ] : VALUE_21 (Echoed byte)
// field #22 (1 byte) [type: uint8_t ] : VALUE_22 (Echoed byte)
// field #23 (1 byte) [type: uint8_t ] : VALUE_23 (Echoed byte)
// field #24 (1 byte) [type: uint8_t ] : VALUE_24 (Echoed byte)
// field #25 (1 byte) [type: uint8_t ] : VALUE_25 (Echoed byte)
// field #26 (1 byte) [type: uint8_t ] : VALUE_26 (Echoed byte)
// field #27 (1 byte) [type: uint8_t ] : VALUE_27 (Echoed byte)
// field #28 (1 byte) [type: uint8_t ] : VALUE_28 (Echoed byte)
// field #29 (1 byte) [type: uint8_t ] : VALUE_29 (Echoed byte)
// field #30 (1 byte) [type: uint8_t ] : VALUE_30 (Echoed byte)
// field #31 (1 byte) [type: uint8_t ] : VALUE_31 (Echoed byte)
// Response payload (length in bytes is 32):
// field #0 (1 byte) [type: uint8_t ] : VALUE_0 (Echoed byte)
// field #1 (1 byte) [type: uint8_t ] : VALUE_1 (Echoed byte)
// field #2 (1 byte) [type: uint8_t ] : VALUE_2 (Echoed byte)
// field #3 (1 byte) [type: uint8_t ] : VALUE_3 (Echoed byte)
// field #4 (1 byte) [type: uint8_t ] : VALUE_4 (Echoed byte)
// field #5 (1 byte) [type: uint8_t ] : VALUE_5 (Echoed byte)
// field #6 (1 byte) [type: uint8_t ] : VALUE_6 (Echoed byte)
// field #7 (1 byte) [type: uint8_t ] : VALUE_7 (Echoed byte)
// field #8 (1 byte) [type: uint8_t ] : VALUE_8 (Echoed byte)
// field #9 (1 byte) [type: uint8_t ] : VALUE_9 (Echoed byte)
// field #10 (1 byte) [type: uint8_t ] : VALUE_10 (Echoed byte)
// field #11 (1 byte) [type: uint8_t ] : VALUE_11 (Echoed byte)
// field #12 (1 byte) [type: uint8_t ] : VALUE_12 (Echoed byte)
// field #13 (1 byte) [type: uint8_t ] : VALUE_13 (Echoed byte)
// field #14 (1 byte) [type: uint8_t ] : VALUE_14 (Echoed byte)
// field #15 (1 byte) [type: uint8_t ] : VALUE_15 (Echoed byte)
// field #16 (1 byte) [type: uint8_t ] : VALUE_16 (Echoed byte)
// field #17 (1 byte) [type: uint8_t ] : VALUE_17 (Echoed byte)
// field #18 (1 byte) [type: uint8_t ] : VALUE_18 (Echoed byte)
// field #19 (1 byte) [type: uint8_t ] : VALUE_19 (Echoed byte)
// field #20 (1 byte) [type: uint8_t ] : VALUE_20 (Echoed byte)
// field #21 (1 byte) [type: uint8_t ] : VALUE_21 (Echoed byte)
// field #22 (1 byte) [type: uint8_t ] : VALUE_22 (Echoed byte)
// field #23 (1 byte) [type: uint8_t ] : VALUE_23 (Echoed byte)
// field #24 (1 byte) [type: uint8_t ] : VALUE_24 (Echoed byte)
// field #25 (1 byte) [type: uint8_t ] : VALUE_25 (Echoed byte)
// field #26 (1 byte) [type: uint8_t ] : VALUE_26 (Echoed byte)
// field #27 (1 byte) [type: uint8_t ] : VALUE_27 (Echoed byte)
// field #28 (1 byte) [type: uint8_t ] : VALUE_28 (Echoed byte)
// field #29 (1 byte) [type: uint8_t ] : VALUE_29 (Echoed byte)
// field #30 (1 byte) [type: uint8_t ] : VALUE_30 (Echoed byte)
// field #31 (1 byte) [type: uint8_t ] : VALUE_31 (Echoed byte)
// Auto-generated section: request payload fields reading
uint8_t req_value_0 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_1 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_2 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_3 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_4 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_5 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_6 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_7 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_8 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_9 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_10 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_11 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_12 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_13 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_14 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_15 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_16 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_17 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_18 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_19 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_20 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_21 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_22 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_23 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_24 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_25 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_26 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_27 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_28 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_29 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_30 = (uint8_t)communication_request_payload_retrieve_uint8_t();
uint8_t req_value_31 = (uint8_t)communication_request_payload_retrieve_uint8_t();
// End of auto-generated section
// USER CODE HERE
// TODO implement command callback function command_ECHO32
// TODO: assign response field VALUE_0 in command ECHO32 callback
uint8_t resp_value_0 = -1;
// TODO: assign response field VALUE_1 in command ECHO32 callback
uint8_t resp_value_1 = -1;
// TODO: assign response field VALUE_2 in command ECHO32 callback
uint8_t resp_value_2 = -1;
// TODO: assign response field VALUE_3 in command ECHO32 callback
uint8_t resp_value_3 = -1;
// TODO: assign response field VALUE_4 in command ECHO32 callback
uint8_t resp_value_4 = -1;
// TODO: assign response field VALUE_5 in command ECHO32 callback
uint8_t resp_value_5 = -1;
// TODO: assign response field VALUE_6 in command ECHO32 callback
uint8_t resp_value_6 = -1;
// TODO: assign response field VALUE_7 in command ECHO32 callback
uint8_t resp_value_7 = -1;
// TODO: assign response field VALUE_8 in command ECHO32 callback
uint8_t resp_value_8 = -1;
// TODO: assign response field VALUE_9 in command ECHO32 callback
uint8_t resp_value_9 = -1;
// TODO: assign response field VALUE_10 in command ECHO32 callback
uint8_t resp_value_10 = -1;
// TODO: assign response field VALUE_11 in command ECHO32 callback
uint8_t resp_value_11 = -1;
// TODO: assign response field VALUE_12 in command ECHO32 callback
uint8_t resp_value_12 = -1;
// TODO: assign response field VALUE_13 in command ECHO32 callback
uint8_t resp_value_13 = -1;
// TODO: assign response field VALUE_14 in command ECHO32 callback
uint8_t resp_value_14 = -1;
// TODO: assign response field VALUE_15 in command ECHO32 callback
uint8_t resp_value_15 = -1;
// TODO: assign response field VALUE_16 in command ECHO32 callback
uint8_t resp_value_16 = -1;
// TODO: assign response field VALUE_17 in command ECHO32 callback
uint8_t resp_value_17 = -1;
// TODO: assign response field VALUE_18 in command ECHO32 callback
uint8_t resp_value_18 = -1;
// TODO: assign response field VALUE_19 in command ECHO32 callback
uint8_t resp_value_19 = -1;
// TODO: assign response field VALUE_20 in command ECHO32 callback
uint8_t resp_value_20 = -1;
// TODO: assign response field VALUE_21 in command ECHO32 callback
uint8_t resp_value_21 = -1;
// TODO: assign response field VALUE_22 in command ECHO32 callback
uint8_t resp_value_22 = -1;
// TODO: assign response field VALUE_23 in command ECHO32 callback
uint8_t resp_value_23 = -1;
// TODO: assign response field VALUE_24 in command ECHO32 callback
uint8_t resp_value_24 = -1;
// TODO: assign response field VALUE_25 in command ECHO32 callback
uint8_t resp_value_25 = -1;
// TODO: assign response field VALUE_26 in command ECHO32 callback
uint8_t resp_value_26 = -1;
// TODO: assign response field VALUE_27 in command ECHO32 callback
uint8_t resp_value_27 = -1;
// TODO: assign response field VALUE_28 in command ECHO32 callback
uint8_t resp_value_28 = -1;
// TODO: assign response field VALUE_29 in command ECHO32 callback
uint8_t resp_value_29 = -1;
// TODO: assign response field VALUE_30 in command ECHO32 callback
uint8_t resp_value_30 = -1;
// TODO: assign response field VALUE_31 in command ECHO32 callback
uint8_t resp_value_31 = -1;
// Auto-generated section: response payload fields writing
communication_response_payload_appender_reset();
communication_response_payload_append_uint8_t((uint8_t)resp_value_0);
communication_response_payload_append_uint8_t((uint8_t)resp_value_1);
communication_response_payload_append_uint8_t((uint8_t)resp_value_2);
communication_response_payload_append_uint8_t((uint8_t)resp_value_3);
communication_response_payload_append_uint8_t((uint8_t)resp_value_4);
communication_response_payload_append_uint8_t((uint8_t)resp_value_5);
communication_response_payload_append_uint8_t((uint8_t)resp_value_6);
communication_response_payload_append_uint8_t((uint8_t)resp_value_7);
communication_response_payload_append_uint8_t((uint8_t)resp_value_8);
communication_response_payload_append_uint8_t((uint8_t)resp_value_9);
communication_response_payload_append_uint8_t((uint8_t)resp_value_10);
communication_response_payload_append_uint8_t((uint8_t)resp_value_11);
communication_response_payload_append_uint8_t((uint8_t)resp_value_12);
communication_response_payload_append_uint8_t((uint8_t)resp_value_13);
communication_response_payload_append_uint8_t((uint8_t)resp_value_14);
communication_response_payload_append_uint8_t((uint8_t)resp_value_15);
communication_response_payload_append_uint8_t((uint8_t)resp_value_16);
communication_response_payload_append_uint8_t((uint8_t)resp_value_17);
communication_response_payload_append_uint8_t((uint8_t)resp_value_18);
communication_response_payload_append_uint8_t((uint8_t)resp_value_19);
communication_response_payload_append_uint8_t((uint8_t)resp_value_20);
communication_response_payload_append_uint8_t((uint8_t)resp_value_21);
communication_response_payload_append_uint8_t((uint8_t)resp_value_22);
communication_response_payload_append_uint8_t((uint8_t)resp_value_23);
communication_response_payload_append_uint8_t((uint8_t)resp_value_24);
communication_response_payload_append_uint8_t((uint8_t)resp_value_25);
communication_response_payload_append_uint8_t((uint8_t)resp_value_26);
communication_response_payload_append_uint8_t((uint8_t)resp_value_27);
communication_response_payload_append_uint8_t((uint8_t)resp_value_28);
communication_response_payload_append_uint8_t((uint8_t)resp_value_29);
communication_response_payload_append_uint8_t((uint8_t)resp_value_30);
communication_response_payload_append_uint8_t((uint8_t)resp_value_31);
return NOERR;
// End of auto-generated section
}