JaiaBot 2.0.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
option_extensions.pb.h
Go to the documentation of this file.
1/* Automatically generated nanopb header */
2/* Generated by nanopb-0.4.8 */
3
4#ifndef PB_DCCL_NANOPB_DCCL_OPTION_EXTENSIONS_PB_H_INCLUDED
5#define PB_DCCL_NANOPB_DCCL_OPTION_EXTENSIONS_PB_H_INCLUDED
6#include <pb.h>
7
8#if PB_PROTO_HEADER_VERSION != 40
9#error Regenerate this file with the current version of nanopb generator.
10#endif
11
12/* Struct definitions */
23
24/* runtime contents-based conditionals */
26 pb_callback_t required_if;
27 pb_callback_t omit_if;
28 pb_callback_t only_if;
29 pb_callback_t min;
30 pb_callback_t max;
32
33typedef struct _dccl_DCCLFieldOptions {
34 /* what encoder / decoder should we use? */
35 pb_callback_t codec;
36 /* leave this field out of DCCL transmissions (has_field() will be false on
37 receipt) */
39 bool omit;
40 /* set true for fields in the header (will *not* be encrypte)d */
42 bool in_head;
43 /* double, float */
45 int32_t precision; /* Deprecated */
46 /* int, double, float */
47 bool has_min;
48 double min;
49 bool has_max;
50 double max;
51 /* time ("1 day" can encode times 12h before or after the receiver's time) */
53 uint32_t num_days;
54 /* static */
55 pb_callback_t static_value;
56 /* string, bytes */
58 uint32_t max_length;
59 /* any `repeated` field */
61 uint32_t max_repeat;
62 /* enum */
66 double resolution;
68 uint32_t min_repeat;
69 pb_callback_t description;
74 pb_extension_t *extensions;
76
78 bool has_id;
79 int32_t id;
81 uint32_t max_bytes;
82 pb_callback_t codec;
83 pb_callback_t codec_group;
87 bool omit_id;
88 pb_callback_t unit_system;
90
91
92/* Extensions */
93extern const pb_extension_type_t dccl_field; /* field type: dccl_DCCLFieldOptions field; */
94extern const pb_extension_type_t dccl_msg; /* field type: dccl_DCCLMessageOptions msg; */
95
96#ifdef __cplusplus
97extern "C" {
98#endif
99
100/* Initializer values for message structs */
101#define dccl_DCCLFieldOptions_init_default {{{NULL}, NULL}, false, false, false, false, false, 0, false, 0, false, 0, false, 1u, {{NULL}, NULL}, false, 0, false, 0, false, true, false, 1, false, 0u, {{NULL}, NULL}, false, dccl_DCCLFieldOptions_Units_init_default, false, dccl_DCCLFieldOptions_Conditions_init_default, NULL}
102#define dccl_DCCLFieldOptions_Units_init_default {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, false, {{NULL}, NULL}, {{NULL}, NULL}}
103#define dccl_DCCLFieldOptions_Conditions_init_default {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
104#define dccl_DCCLMessageOptions_init_default {false, 0, false, 0, {{NULL}, NULL}, {{NULL}, NULL}, false, 0, false, false, {{NULL}, NULL}}
105#define dccl_DCCLFieldOptions_init_zero {{{NULL}, NULL}, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, {{NULL}, NULL}, false, 0, false, 0, false, 0, false, 0, false, 0, {{NULL}, NULL}, false, dccl_DCCLFieldOptions_Units_init_zero, false, dccl_DCCLFieldOptions_Conditions_init_zero, NULL}
106#define dccl_DCCLFieldOptions_Units_init_zero {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, 0, {{NULL}, NULL}, {{NULL}, NULL}}
107#define dccl_DCCLFieldOptions_Conditions_init_zero {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
108#define dccl_DCCLMessageOptions_init_zero {false, 0, false, 0, {{NULL}, NULL}, {{NULL}, NULL}, false, 0, false, 0, {{NULL}, NULL}}
109
110/* Field tags (for use in manual encoding/decoding) */
111#define dccl_DCCLFieldOptions_Units_base_dimensions_tag 1
112#define dccl_DCCLFieldOptions_Units_derived_dimensions_tag 2
113#define dccl_DCCLFieldOptions_Units_system_tag 3
114#define dccl_DCCLFieldOptions_Units_relative_temperature_tag 4
115#define dccl_DCCLFieldOptions_Units_unit_tag 5
116#define dccl_DCCLFieldOptions_Units_prefix_tag 6
117#define dccl_DCCLFieldOptions_Conditions_required_if_tag 1
118#define dccl_DCCLFieldOptions_Conditions_omit_if_tag 2
119#define dccl_DCCLFieldOptions_Conditions_only_if_tag 3
120#define dccl_DCCLFieldOptions_Conditions_min_tag 10
121#define dccl_DCCLFieldOptions_Conditions_max_tag 11
122#define dccl_DCCLFieldOptions_codec_tag 1
123#define dccl_DCCLFieldOptions_omit_tag 2
124#define dccl_DCCLFieldOptions_in_head_tag 3
125#define dccl_DCCLFieldOptions_precision_tag 4
126#define dccl_DCCLFieldOptions_min_tag 5
127#define dccl_DCCLFieldOptions_max_tag 6
128#define dccl_DCCLFieldOptions_num_days_tag 7
129#define dccl_DCCLFieldOptions_static_value_tag 8
130#define dccl_DCCLFieldOptions_max_length_tag 9
131#define dccl_DCCLFieldOptions_max_repeat_tag 10
132#define dccl_DCCLFieldOptions_packed_enum_tag 11
133#define dccl_DCCLFieldOptions_resolution_tag 12
134#define dccl_DCCLFieldOptions_min_repeat_tag 13
135#define dccl_DCCLFieldOptions_description_tag 20
136#define dccl_DCCLFieldOptions_units_tag 30
137#define dccl_DCCLFieldOptions_dynamic_conditions_tag 40
138#define dccl_DCCLMessageOptions_id_tag 1
139#define dccl_DCCLMessageOptions_max_bytes_tag 2
140#define dccl_DCCLMessageOptions_codec_tag 3
141#define dccl_DCCLMessageOptions_codec_group_tag 4
142#define dccl_DCCLMessageOptions_codec_version_tag 5
143#define dccl_DCCLMessageOptions_omit_id_tag 10
144#define dccl_DCCLMessageOptions_unit_system_tag 30
145#define dccl_field_tag 1012
146#define dccl_msg_tag 1012
147
148/* Struct field encoding specification for nanopb */
149#define dccl_DCCLFieldOptions_FIELDLIST(X, a) \
150X(a, CALLBACK, OPTIONAL, STRING, codec, 1) \
151X(a, STATIC, OPTIONAL, BOOL, omit, 2) \
152X(a, STATIC, OPTIONAL, BOOL, in_head, 3) \
153X(a, STATIC, OPTIONAL, INT32, precision, 4) \
154X(a, STATIC, OPTIONAL, DOUBLE, min, 5) \
155X(a, STATIC, OPTIONAL, DOUBLE, max, 6) \
156X(a, STATIC, OPTIONAL, UINT32, num_days, 7) \
157X(a, CALLBACK, OPTIONAL, STRING, static_value, 8) \
158X(a, STATIC, OPTIONAL, UINT32, max_length, 9) \
159X(a, STATIC, OPTIONAL, UINT32, max_repeat, 10) \
160X(a, STATIC, OPTIONAL, BOOL, packed_enum, 11) \
161X(a, STATIC, OPTIONAL, DOUBLE, resolution, 12) \
162X(a, STATIC, OPTIONAL, UINT32, min_repeat, 13) \
163X(a, CALLBACK, OPTIONAL, STRING, description, 20) \
164X(a, STATIC, OPTIONAL, MESSAGE, units, 30) \
165X(a, STATIC, OPTIONAL, MESSAGE, dynamic_conditions, 40) \
166X(a, CALLBACK, OPTIONAL, EXTENSION, extensions, 1000)
167#define dccl_DCCLFieldOptions_CALLBACK pb_default_field_callback
168#define dccl_DCCLFieldOptions_DEFAULT (const pb_byte_t*)"\x10\x00\x18\x00\x20\x00\x38\x01\x58\x01\x61\x00\x00\x00\x00\x00\x00\xf0\x3f\x68\x00\x00"
169#define dccl_DCCLFieldOptions_units_MSGTYPE dccl_DCCLFieldOptions_Units
170#define dccl_DCCLFieldOptions_dynamic_conditions_MSGTYPE dccl_DCCLFieldOptions_Conditions
171
172#define dccl_DCCLFieldOptions_Units_FIELDLIST(X, a) \
173X(a, CALLBACK, OPTIONAL, STRING, base_dimensions, 1) \
174X(a, CALLBACK, OPTIONAL, STRING, derived_dimensions, 2) \
175X(a, CALLBACK, OPTIONAL, STRING, system, 3) \
176X(a, STATIC, OPTIONAL, BOOL, relative_temperature, 4) \
177X(a, CALLBACK, OPTIONAL, STRING, unit, 5) \
178X(a, CALLBACK, OPTIONAL, STRING, prefix, 6)
179#define dccl_DCCLFieldOptions_Units_CALLBACK pb_default_field_callback
180#define dccl_DCCLFieldOptions_Units_DEFAULT (const pb_byte_t*)"\x20\x00\x00"
181
182#define dccl_DCCLFieldOptions_Conditions_FIELDLIST(X, a) \
183X(a, CALLBACK, OPTIONAL, STRING, required_if, 1) \
184X(a, CALLBACK, OPTIONAL, STRING, omit_if, 2) \
185X(a, CALLBACK, OPTIONAL, STRING, only_if, 3) \
186X(a, CALLBACK, OPTIONAL, STRING, min, 10) \
187X(a, CALLBACK, OPTIONAL, STRING, max, 11)
188#define dccl_DCCLFieldOptions_Conditions_CALLBACK pb_default_field_callback
189#define dccl_DCCLFieldOptions_Conditions_DEFAULT NULL
190
191#define dccl_DCCLMessageOptions_FIELDLIST(X, a) \
192X(a, STATIC, OPTIONAL, INT32, id, 1) \
193X(a, STATIC, OPTIONAL, UINT32, max_bytes, 2) \
194X(a, CALLBACK, OPTIONAL, STRING, codec, 3) \
195X(a, CALLBACK, OPTIONAL, STRING, codec_group, 4) \
196X(a, STATIC, OPTIONAL, INT32, codec_version, 5) \
197X(a, STATIC, OPTIONAL, BOOL, omit_id, 10) \
198X(a, CALLBACK, OPTIONAL, STRING, unit_system, 30)
199#define dccl_DCCLMessageOptions_CALLBACK pb_default_field_callback
200#define dccl_DCCLMessageOptions_DEFAULT (const pb_byte_t*)"\x50\x00\x00"
201
202extern const pb_msgdesc_t dccl_DCCLFieldOptions_msg;
203extern const pb_msgdesc_t dccl_DCCLFieldOptions_Units_msg;
204extern const pb_msgdesc_t dccl_DCCLFieldOptions_Conditions_msg;
205extern const pb_msgdesc_t dccl_DCCLMessageOptions_msg;
206
207/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
208#define dccl_DCCLFieldOptions_fields &dccl_DCCLFieldOptions_msg
209#define dccl_DCCLFieldOptions_Units_fields &dccl_DCCLFieldOptions_Units_msg
210#define dccl_DCCLFieldOptions_Conditions_fields &dccl_DCCLFieldOptions_Conditions_msg
211#define dccl_DCCLMessageOptions_fields &dccl_DCCLMessageOptions_msg
212
213/* Maximum encoded size of messages (where known) */
214/* dccl_DCCLFieldOptions_size depends on runtime parameters */
215/* dccl_DCCLFieldOptions_Units_size depends on runtime parameters */
216/* dccl_DCCLFieldOptions_Conditions_size depends on runtime parameters */
217/* dccl_DCCLMessageOptions_size depends on runtime parameters */
218
219#ifdef __cplusplus
220} /* extern "C" */
221#endif
222
223#endif
struct _dccl_DCCLFieldOptions dccl_DCCLFieldOptions
const pb_extension_type_t dccl_field
struct _dccl_DCCLMessageOptions dccl_DCCLMessageOptions
const pb_msgdesc_t dccl_DCCLFieldOptions_msg
const pb_extension_type_t dccl_msg
const pb_msgdesc_t dccl_DCCLFieldOptions_Conditions_msg
const pb_msgdesc_t dccl_DCCLFieldOptions_Units_msg
struct _dccl_DCCLFieldOptions_Units dccl_DCCLFieldOptions_Units
const pb_msgdesc_t dccl_DCCLMessageOptions_msg
struct _dccl_DCCLFieldOptions_Conditions dccl_DCCLFieldOptions_Conditions
dccl_DCCLFieldOptions_Units units
dccl_DCCLFieldOptions_Conditions dynamic_conditions