MOS Source Code
Loading...
Searching...
No Matches
alltypes_legacy.h
Go to the documentation of this file.
1/* Automatically generated nanopb header */
2/* Generated by nanopb-0.4.0-dev */
3
4#ifndef PB_ALLTYPES_LEGACY_H_INCLUDED
5#define PB_ALLTYPES_LEGACY_H_INCLUDED
6#include <pb.h>
7
8/* @@protoc_insertion_point(includes) */
9#if PB_PROTO_HEADER_VERSION != 40
10#error Regenerate this file with the current version of nanopb generator.
11#endif
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/* Enum definitions */
18typedef enum _HugeEnum {
19 HugeEnum_Negative = -2147483647,
20 HugeEnum_Positive = 2147483647
22#define _HugeEnum_MIN HugeEnum_Negative
23#define _HugeEnum_MAX HugeEnum_Positive
24#define _HugeEnum_ARRAYSIZE ((HugeEnum)(HugeEnum_Positive+1))
25
26typedef enum _MyEnum {
30 MyEnum_Truth = 42
32#define _MyEnum_MIN MyEnum_Zero
33#define _MyEnum_MAX MyEnum_Truth
34#define _MyEnum_ARRAYSIZE ((MyEnum)(MyEnum_Truth+1))
35
36/* Struct definitions */
37typedef struct _EmptyMessage {
39/* @@protoc_insertion_point(struct:EmptyMessage) */
41
42
56
57
58typedef struct _SubMessage {
59 char substuff1[16];
63/* @@protoc_insertion_point(struct:SubMessage) */
65
66
67typedef PB_BYTES_ARRAY_T(16) AllTypes_req_bytes_t;
68typedef PB_BYTES_ARRAY_T(16) AllTypes_rep_bytes_t;
69typedef PB_BYTES_ARRAY_T(16) AllTypes_opt_bytes_t;
70typedef struct _AllTypes {
80 float req_float;
83 double req_double;
84 char req_string[16];
85 AllTypes_req_bytes_t req_bytes;
89 int32_t rep_int32[5];
91 int64_t rep_int64[5];
93 uint32_t rep_uint32[5];
95 uint64_t rep_uint64[5];
97 int32_t rep_sint32[5];
99 int64_t rep_sint64[5];
101 bool rep_bool[5];
103 uint32_t rep_fixed32[5];
105 int32_t rep_sfixed32[5];
107 float rep_float[5];
109 uint64_t rep_fixed64[5];
111 int64_t rep_sfixed64[5];
113 double rep_double[5];
115 char rep_string[5][16];
117 AllTypes_rep_bytes_t rep_bytes[5];
119 SubMessage rep_submsg[5];
121 MyEnum rep_enum[5];
149 char opt_string[16];
151 AllTypes_opt_bytes_t opt_bytes;
157 pb_extension_t *extensions;
158/* @@protoc_insertion_point(struct:AllTypes) */
159} AllTypes;
160
161
162/* Initializer values for message structs */
163#define SubMessage_init_default {"1", 2, false, 3u}
164#define EmptyMessage_init_default {0}
165#define Limits_init_default {2147483647, -2147483647, 4294967295u, 0u, 9223372036854775807ll, -9223372036854775807ll, 18446744073709551615ull, 0ull, HugeEnum_Positive, HugeEnum_Negative}
166#define AllTypes_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", {0, {0}}, SubMessage_init_default, _MyEnum_MIN, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {"", "", "", "", ""}, 0, {{0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}}, 0, {SubMessage_init_default, SubMessage_init_default, SubMessage_init_default, SubMessage_init_default, SubMessage_init_default}, 0, {_MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN}, false, 4041, false, 4042ll, false, 4043u, false, 4044ull, false, 4045, false, 4046, false, false, false, 4048u, false, 4049, false, 4050, false, 4051ull, false, 4052ll, false, 4053, false, "4054", false, {4, {0x34,0x30,0x35,0x35}}, false, SubMessage_init_default, false, MyEnum_Second, 0, NULL}
167#define SubMessage_init_zero {"", 0, false, 0}
168#define EmptyMessage_init_zero {0}
169#define Limits_init_zero {0, 0, 0, 0, 0, 0, 0, 0, _HugeEnum_MIN, _HugeEnum_MIN}
170#define AllTypes_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", {0, {0}}, SubMessage_init_zero, _MyEnum_MIN, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {"", "", "", "", ""}, 0, {{0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}}, 0, {SubMessage_init_zero, SubMessage_init_zero, SubMessage_init_zero, SubMessage_init_zero, SubMessage_init_zero}, 0, {_MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN}, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, "", false, {0, {0}}, false, SubMessage_init_zero, false, _MyEnum_MIN, 0, NULL}
171
172/* Field tags (for use in manual encoding/decoding) */
173#define Limits_int32_min_tag 1
174#define Limits_int32_max_tag 2
175#define Limits_uint32_min_tag 3
176#define Limits_uint32_max_tag 4
177#define Limits_int64_min_tag 5
178#define Limits_int64_max_tag 6
179#define Limits_uint64_min_tag 7
180#define Limits_uint64_max_tag 8
181#define Limits_enum_min_tag 9
182#define Limits_enum_max_tag 10
183#define SubMessage_substuff1_tag 1
184#define SubMessage_substuff2_tag 2
185#define SubMessage_substuff3_tag 3
186#define AllTypes_req_int32_tag 1
187#define AllTypes_req_int64_tag 2
188#define AllTypes_req_uint32_tag 3
189#define AllTypes_req_uint64_tag 4
190#define AllTypes_req_sint32_tag 5
191#define AllTypes_req_sint64_tag 6
192#define AllTypes_req_bool_tag 7
193#define AllTypes_req_fixed32_tag 8
194#define AllTypes_req_sfixed32_tag 9
195#define AllTypes_req_float_tag 10
196#define AllTypes_req_fixed64_tag 11
197#define AllTypes_req_sfixed64_tag 12
198#define AllTypes_req_double_tag 13
199#define AllTypes_req_string_tag 14
200#define AllTypes_req_bytes_tag 15
201#define AllTypes_req_submsg_tag 16
202#define AllTypes_req_enum_tag 17
203#define AllTypes_rep_int32_tag 21
204#define AllTypes_rep_int64_tag 22
205#define AllTypes_rep_uint32_tag 23
206#define AllTypes_rep_uint64_tag 24
207#define AllTypes_rep_sint32_tag 25
208#define AllTypes_rep_sint64_tag 26
209#define AllTypes_rep_bool_tag 27
210#define AllTypes_rep_fixed32_tag 28
211#define AllTypes_rep_sfixed32_tag 29
212#define AllTypes_rep_float_tag 30
213#define AllTypes_rep_fixed64_tag 31
214#define AllTypes_rep_sfixed64_tag 32
215#define AllTypes_rep_double_tag 33
216#define AllTypes_rep_string_tag 34
217#define AllTypes_rep_bytes_tag 35
218#define AllTypes_rep_submsg_tag 36
219#define AllTypes_rep_enum_tag 37
220#define AllTypes_opt_int32_tag 41
221#define AllTypes_opt_int64_tag 42
222#define AllTypes_opt_uint32_tag 43
223#define AllTypes_opt_uint64_tag 44
224#define AllTypes_opt_sint32_tag 45
225#define AllTypes_opt_sint64_tag 46
226#define AllTypes_opt_bool_tag 47
227#define AllTypes_opt_fixed32_tag 48
228#define AllTypes_opt_sfixed32_tag 49
229#define AllTypes_opt_float_tag 50
230#define AllTypes_opt_fixed64_tag 51
231#define AllTypes_opt_sfixed64_tag 52
232#define AllTypes_opt_double_tag 53
233#define AllTypes_opt_string_tag 54
234#define AllTypes_opt_bytes_tag 55
235#define AllTypes_opt_submsg_tag 56
236#define AllTypes_opt_enum_tag 57
237#define AllTypes_end_tag 99
238
239/* Struct field encoding specification for nanopb */
240#define SubMessage_FIELDLIST(X, a) \
241X(a, STATIC, REQUIRED, STRING, substuff1, 1) \
242X(a, STATIC, REQUIRED, INT32, substuff2, 2) \
243X(a, STATIC, OPTIONAL, FIXED32, substuff3, 3)
244#define SubMessage_CALLBACK NULL
245
246#define EmptyMessage_FIELDLIST(X, a) \
247
248#define EmptyMessage_CALLBACK NULL
249
250#define Limits_FIELDLIST(X, a) \
251X(a, STATIC, REQUIRED, INT32, int32_min, 1) \
252X(a, STATIC, REQUIRED, INT32, int32_max, 2) \
253X(a, STATIC, REQUIRED, UINT32, uint32_min, 3) \
254X(a, STATIC, REQUIRED, UINT32, uint32_max, 4) \
255X(a, STATIC, REQUIRED, INT64, int64_min, 5) \
256X(a, STATIC, REQUIRED, INT64, int64_max, 6) \
257X(a, STATIC, REQUIRED, UINT64, uint64_min, 7) \
258X(a, STATIC, REQUIRED, UINT64, uint64_max, 8) \
259X(a, STATIC, REQUIRED, ENUM, enum_min, 9) \
260X(a, STATIC, REQUIRED, ENUM, enum_max, 10)
261#define Limits_CALLBACK NULL
262
263#define AllTypes_FIELDLIST(X, a) \
264X(a, STATIC, REQUIRED, INT32, req_int32, 1) \
265X(a, STATIC, REQUIRED, INT64, req_int64, 2) \
266X(a, STATIC, REQUIRED, UINT32, req_uint32, 3) \
267X(a, STATIC, REQUIRED, UINT64, req_uint64, 4) \
268X(a, STATIC, REQUIRED, SINT32, req_sint32, 5) \
269X(a, STATIC, REQUIRED, SINT64, req_sint64, 6) \
270X(a, STATIC, REQUIRED, BOOL, req_bool, 7) \
271X(a, STATIC, REQUIRED, FIXED32, req_fixed32, 8) \
272X(a, STATIC, REQUIRED, SFIXED32, req_sfixed32, 9) \
273X(a, STATIC, REQUIRED, FLOAT, req_float, 10) \
274X(a, STATIC, REQUIRED, FIXED64, req_fixed64, 11) \
275X(a, STATIC, REQUIRED, SFIXED64, req_sfixed64, 12) \
276X(a, STATIC, REQUIRED, DOUBLE, req_double, 13) \
277X(a, STATIC, REQUIRED, STRING, req_string, 14) \
278X(a, STATIC, REQUIRED, BYTES, req_bytes, 15) \
279X(a, STATIC, REQUIRED, MESSAGE, req_submsg, 16) \
280X(a, STATIC, REQUIRED, UENUM, req_enum, 17) \
281X(a, STATIC, REPEATED, INT32, rep_int32, 21) \
282X(a, STATIC, REPEATED, INT64, rep_int64, 22) \
283X(a, STATIC, REPEATED, UINT32, rep_uint32, 23) \
284X(a, STATIC, REPEATED, UINT64, rep_uint64, 24) \
285X(a, STATIC, REPEATED, SINT32, rep_sint32, 25) \
286X(a, STATIC, REPEATED, SINT64, rep_sint64, 26) \
287X(a, STATIC, REPEATED, BOOL, rep_bool, 27) \
288X(a, STATIC, REPEATED, FIXED32, rep_fixed32, 28) \
289X(a, STATIC, REPEATED, SFIXED32, rep_sfixed32, 29) \
290X(a, STATIC, REPEATED, FLOAT, rep_float, 30) \
291X(a, STATIC, REPEATED, FIXED64, rep_fixed64, 31) \
292X(a, STATIC, REPEATED, SFIXED64, rep_sfixed64, 32) \
293X(a, STATIC, REPEATED, DOUBLE, rep_double, 33) \
294X(a, STATIC, REPEATED, STRING, rep_string, 34) \
295X(a, STATIC, REPEATED, BYTES, rep_bytes, 35) \
296X(a, STATIC, REPEATED, MESSAGE, rep_submsg, 36) \
297X(a, STATIC, REPEATED, UENUM, rep_enum, 37) \
298X(a, STATIC, OPTIONAL, INT32, opt_int32, 41) \
299X(a, STATIC, OPTIONAL, INT64, opt_int64, 42) \
300X(a, STATIC, OPTIONAL, UINT32, opt_uint32, 43) \
301X(a, STATIC, OPTIONAL, UINT64, opt_uint64, 44) \
302X(a, STATIC, OPTIONAL, SINT32, opt_sint32, 45) \
303X(a, STATIC, OPTIONAL, SINT64, opt_sint64, 46) \
304X(a, STATIC, OPTIONAL, BOOL, opt_bool, 47) \
305X(a, STATIC, OPTIONAL, FIXED32, opt_fixed32, 48) \
306X(a, STATIC, OPTIONAL, SFIXED32, opt_sfixed32, 49) \
307X(a, STATIC, OPTIONAL, FLOAT, opt_float, 50) \
308X(a, STATIC, OPTIONAL, FIXED64, opt_fixed64, 51) \
309X(a, STATIC, OPTIONAL, SFIXED64, opt_sfixed64, 52) \
310X(a, STATIC, OPTIONAL, DOUBLE, opt_double, 53) \
311X(a, STATIC, OPTIONAL, STRING, opt_string, 54) \
312X(a, STATIC, OPTIONAL, BYTES, opt_bytes, 55) \
313X(a, STATIC, OPTIONAL, MESSAGE, opt_submsg, 56) \
314X(a, STATIC, OPTIONAL, UENUM, opt_enum, 57) \
315X(a, STATIC, REQUIRED, INT32, end, 99) \
316X(a, CALLBACK, OPTIONAL, EXTENSION, extensions, 200)
317#define AllTypes_CALLBACK pb_default_field_callback
318#define AllTypes_req_submsg_MSGTYPE SubMessage
319#define AllTypes_rep_submsg_MSGTYPE SubMessage
320#define AllTypes_opt_submsg_MSGTYPE SubMessage
321
322extern const pb_msgdesc_t SubMessage_msg;
324extern const pb_msgdesc_t EmptyMessage_msg;
326extern const pb_msgdesc_t Limits_msg;
328extern const pb_msgdesc_t AllTypes_msg;
330
331/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
332#define SubMessage_fields &SubMessage_msg
333#define EmptyMessage_fields &EmptyMessage_msg
334#define Limits_fields &Limits_msg
335#define AllTypes_fields &AllTypes_msg
336
337/* Maximum encoded size of messages (where known) */
338#define SubMessage_size 33
339#define EmptyMessage_size 0
340#define Limits_size 100
341#define AllTypes_size 1320
342
343#ifdef __cplusplus
344} /* extern "C" */
345#endif
346/* @@protoc_insertion_point(eof) */
347
348#endif
const pb_msgdesc_t SubMessage_msg
const pb_msgdesc_t Limits_msg
const pb_msgdesc_t AllTypes_msg
pb_byte_t Limits_default[]
pb_byte_t SubMessage_default[]
@ MyEnum_First
@ MyEnum_Zero
@ MyEnum_Truth
@ MyEnum_Second
const pb_msgdesc_t EmptyMessage_msg
pb_byte_t EmptyMessage_default[]
pb_byte_t AllTypes_default[]
HugeEnum
@ HugeEnum_Negative
@ HugeEnum_Positive
uint_least8_t pb_byte_t
Definition pb.h:227
uint_least16_t pb_size_t
Definition pb.h:310
#define PB_BYTES_ARRAY_T(n)
Definition pb.h:376
unsigned int uint32_t
Definition pb_syshdr.h:24
unsigned long long uint64_t
Definition pb_syshdr.h:26
signed int int32_t
Definition pb_syshdr.h:23
signed long long int64_t
Definition pb_syshdr.h:25
pb_size_t rep_submsg_count
bool has_opt_double
int64_t req_sfixed64
bool has_opt_uint64
AllTypes_opt_bytes_t opt_bytes
bool has_opt_fixed32
pb_size_t rep_string_count
int64_t opt_sint64
uint64_t opt_uint64
AllTypes_req_bytes_t req_bytes
int32_t opt_int32
pb_size_t rep_double_count
bool has_opt_sfixed32
uint32_t opt_fixed32
int64_t opt_int64
bool has_opt_sint64
pb_extension_t * extensions
SubMessage opt_submsg
uint32_t req_fixed32
int32_t opt_sint32
bool has_opt_sint32
pb_size_t rep_bool_count
pb_size_t rep_fixed32_count
int64_t req_int64
uint64_t req_uint64
bool has_opt_submsg
pb_size_t rep_int32_count
double opt_double
pb_size_t rep_float_count
int32_t req_int32
bool has_opt_string
pb_size_t rep_sfixed32_count
uint32_t opt_uint32
double req_double
pb_size_t rep_fixed64_count
pb_size_t rep_bytes_count
pb_size_t rep_enum_count
int64_t req_sint64
int64_t opt_sfixed64
MyEnum opt_enum
int32_t req_sint32
SubMessage req_submsg
uint32_t req_uint32
uint64_t opt_fixed64
int32_t req_sfixed32
pb_size_t rep_uint64_count
pb_size_t rep_sint64_count
int32_t opt_sfixed32
MyEnum req_enum
pb_size_t rep_sfixed64_count
pb_size_t rep_uint32_count
pb_size_t rep_int64_count
bool has_opt_uint32
float req_float
bool has_opt_fixed64
pb_size_t rep_sint32_count
uint64_t req_fixed64
bool has_opt_sfixed64
HugeEnum enum_min
uint64_t uint64_min
int32_t int32_max
uint32_t uint32_max
uint32_t uint32_min
uint64_t uint64_max
int32_t int32_min
HugeEnum enum_max
int64_t int64_max
int64_t int64_min
int32_t substuff2
uint32_t substuff3