1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: cllc.proto */
4 /* Do not generate deprecated warnings for self */
5 #ifndef PROTOBUF_C__NO_DEPRECATED
6 #define PROTOBUF_C__NO_DEPRECATED
7 #endif
9 #include "cllc.pb-c.h"
10 void cllc_associated_devices__init
11 (CllcAssociatedDevices *message)
12 {
13 static CllcAssociatedDevices init_value = CLLC_ASSOCIATED_DEVICES__INIT;
14 *message = init_value;
15 }
16 size_t cllc_associated_devices__get_packed_size
17 (const CllcAssociatedDevices *message)
18 {
19 assert(message->base.descriptor == &cllc_associated_devices__descriptor);
20 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
21 }
22 size_t cllc_associated_devices__pack
23 (const CllcAssociatedDevices *message,
24 uint8_t *out)
25 {
26 assert(message->base.descriptor == &cllc_associated_devices__descriptor);
27 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
28 }
29 size_t cllc_associated_devices__pack_to_buffer
30 (const CllcAssociatedDevices *message,
31 ProtobufCBuffer *buffer)
32 {
33 assert(message->base.descriptor == &cllc_associated_devices__descriptor);
34 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
35 }
36 CllcAssociatedDevices *
37 cllc_associated_devices__unpack
38 (ProtobufCAllocator *allocator,
39 size_t len,
40 const uint8_t *data)
41 {
42 return (CllcAssociatedDevices *)
43 protobuf_c_message_unpack (&cllc_associated_devices__descriptor,
44 allocator, len, data);
45 }
46 void cllc_associated_devices__free_unpacked
47 (CllcAssociatedDevices *message,
48 ProtobufCAllocator *allocator)
49 {
50 assert(message->base.descriptor == &cllc_associated_devices__descriptor);
51 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
52 }
53 void cllc_statistics__init
54 (CllcStatistics *message)
55 {
56 static CllcStatistics init_value = CLLC_STATISTICS__INIT;
57 *message = init_value;
58 }
59 size_t cllc_statistics__get_packed_size
60 (const CllcStatistics *message)
61 {
62 assert(message->base.descriptor == &cllc_statistics__descriptor);
63 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
64 }
65 size_t cllc_statistics__pack
66 (const CllcStatistics *message,
67 uint8_t *out)
68 {
69 assert(message->base.descriptor == &cllc_statistics__descriptor);
70 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
71 }
72 size_t cllc_statistics__pack_to_buffer
73 (const CllcStatistics *message,
74 ProtobufCBuffer *buffer)
75 {
76 assert(message->base.descriptor == &cllc_statistics__descriptor);
77 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
78 }
79 CllcStatistics *
80 cllc_statistics__unpack
81 (ProtobufCAllocator *allocator,
82 size_t len,
83 const uint8_t *data)
84 {
85 return (CllcStatistics *)
86 protobuf_c_message_unpack (&cllc_statistics__descriptor,
87 allocator, len, data);
88 }
89 void cllc_statistics__free_unpacked
90 (CllcStatistics *message,
91 ProtobufCAllocator *allocator)
92 {
93 assert(message->base.descriptor == &cllc_statistics__descriptor);
94 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
95 }
96 static const ProtobufCFieldDescriptor cllc_associated_devices__field_descriptors[4] =
97 {
98 {
99 "shortAddr",
100 1,
101 PROTOBUF_C_LABEL_REQUIRED,
102 PROTOBUF_C_TYPE_UINT32,
103 0, /* quantifier_offset */
104 offsetof(CllcAssociatedDevices, shortaddr),
105 NULL,
106 NULL,
107 0, /* flags */
108 0,NULL,NULL /* reserved1,reserved2, etc */
109 },
110 {
111 "capInfo",
112 2,
113 PROTOBUF_C_LABEL_REQUIRED,
114 PROTOBUF_C_TYPE_MESSAGE,
115 0, /* quantifier_offset */
116 offsetof(CllcAssociatedDevices, capinfo),
117 &api_mac_capability_info__descriptor,
118 NULL,
119 0, /* flags */
120 0,NULL,NULL /* reserved1,reserved2, etc */
121 },
122 {
123 "rssi",
124 3,
125 PROTOBUF_C_LABEL_REQUIRED,
126 PROTOBUF_C_TYPE_SINT32,
127 0, /* quantifier_offset */
128 offsetof(CllcAssociatedDevices, rssi),
129 NULL,
130 NULL,
131 0, /* flags */
132 0,NULL,NULL /* reserved1,reserved2, etc */
133 },
134 {
135 "status",
136 4,
137 PROTOBUF_C_LABEL_REQUIRED,
138 PROTOBUF_C_TYPE_UINT32,
139 0, /* quantifier_offset */
140 offsetof(CllcAssociatedDevices, status),
141 NULL,
142 NULL,
143 0, /* flags */
144 0,NULL,NULL /* reserved1,reserved2, etc */
145 },
146 };
147 static const unsigned cllc_associated_devices__field_indices_by_name[] = {
148 1, /* field[1] = capInfo */
149 2, /* field[2] = rssi */
150 0, /* field[0] = shortAddr */
151 3, /* field[3] = status */
152 };
153 static const ProtobufCIntRange cllc_associated_devices__number_ranges[1 + 1] =
154 {
155 { 1, 0 },
156 { 0, 4 }
157 };
158 const ProtobufCMessageDescriptor cllc_associated_devices__descriptor =
159 {
160 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
161 "Cllc_associated_devices",
162 "CllcAssociatedDevices",
163 "CllcAssociatedDevices",
164 "",
165 sizeof(CllcAssociatedDevices),
166 4,
167 cllc_associated_devices__field_descriptors,
168 cllc_associated_devices__field_indices_by_name,
169 1, cllc_associated_devices__number_ranges,
170 (ProtobufCMessageInit) cllc_associated_devices__init,
171 NULL,NULL,NULL /* reserved[123] */
172 };
173 static const ProtobufCFieldDescriptor cllc_statistics__field_descriptors[5] =
174 {
175 {
176 "fhNumPASolicitReceived",
177 1,
178 PROTOBUF_C_LABEL_REQUIRED,
179 PROTOBUF_C_TYPE_UINT32,
180 0, /* quantifier_offset */
181 offsetof(CllcStatistics, fhnumpasolicitreceived),
182 NULL,
183 NULL,
184 0, /* flags */
185 0,NULL,NULL /* reserved1,reserved2, etc */
186 },
187 {
188 "fhNumPASent",
189 2,
190 PROTOBUF_C_LABEL_REQUIRED,
191 PROTOBUF_C_TYPE_UINT32,
192 0, /* quantifier_offset */
193 offsetof(CllcStatistics, fhnumpasent),
194 NULL,
195 NULL,
196 0, /* flags */
197 0,NULL,NULL /* reserved1,reserved2, etc */
198 },
199 {
200 "fhNumPANConfigSolicitsReceived",
201 3,
202 PROTOBUF_C_LABEL_REQUIRED,
203 PROTOBUF_C_TYPE_UINT32,
204 0, /* quantifier_offset */
205 offsetof(CllcStatistics, fhnumpanconfigsolicitsreceived),
206 NULL,
207 NULL,
208 0, /* flags */
209 0,NULL,NULL /* reserved1,reserved2, etc */
210 },
211 {
212 "fhNumPANConfigSent",
213 4,
214 PROTOBUF_C_LABEL_REQUIRED,
215 PROTOBUF_C_TYPE_UINT32,
216 0, /* quantifier_offset */
217 offsetof(CllcStatistics, fhnumpanconfigsent),
218 NULL,
219 NULL,
220 0, /* flags */
221 0,NULL,NULL /* reserved1,reserved2, etc */
222 },
223 {
224 "otherStats",
225 5,
226 PROTOBUF_C_LABEL_REQUIRED,
227 PROTOBUF_C_TYPE_UINT32,
228 0, /* quantifier_offset */
229 offsetof(CllcStatistics, otherstats),
230 NULL,
231 NULL,
232 0, /* flags */
233 0,NULL,NULL /* reserved1,reserved2, etc */
234 },
235 };
236 static const unsigned cllc_statistics__field_indices_by_name[] = {
237 3, /* field[3] = fhNumPANConfigSent */
238 2, /* field[2] = fhNumPANConfigSolicitsReceived */
239 1, /* field[1] = fhNumPASent */
240 0, /* field[0] = fhNumPASolicitReceived */
241 4, /* field[4] = otherStats */
242 };
243 static const ProtobufCIntRange cllc_statistics__number_ranges[1 + 1] =
244 {
245 { 1, 0 },
246 { 0, 5 }
247 };
248 const ProtobufCMessageDescriptor cllc_statistics__descriptor =
249 {
250 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
251 "Cllc_statistics",
252 "CllcStatistics",
253 "CllcStatistics",
254 "",
255 sizeof(CllcStatistics),
256 5,
257 cllc_statistics__field_descriptors,
258 cllc_statistics__field_indices_by_name,
259 1, cllc_statistics__number_ranges,
260 (ProtobufCMessageInit) cllc_statistics__init,
261 NULL,NULL,NULL /* reserved[123] */
262 };
263 static const ProtobufCEnumValue cllc_states__enum_values_by_number[7] =
264 {
265 { "Cllc_states_initWaiting", "CLLC_STATES__Cllc_states_initWaiting", 1 },
266 { "Cllc_states_startingCoordinator", "CLLC_STATES__Cllc_states_startingCoordinator", 2 },
267 { "Cllc_states_initRestoringCoordinator", "CLLC_STATES__Cllc_states_initRestoringCoordinator", 3 },
268 { "Cllc_states_started", "CLLC_STATES__Cllc_states_started", 4 },
269 { "Cllc_states_restored", "CLLC_STATES__Cllc_states_restored", 5 },
270 { "Cllc_states_joiningAllowed", "CLLC_STATES__Cllc_states_joiningAllowed", 6 },
271 { "Cllc_states_joiningNotAllowed", "CLLC_STATES__Cllc_states_joiningNotAllowed", 7 },
272 };
273 static const ProtobufCIntRange cllc_states__value_ranges[] = {
274 {1, 0},{0, 7}
275 };
276 static const ProtobufCEnumValueIndex cllc_states__enum_values_by_name[7] =
277 {
278 { "Cllc_states_initRestoringCoordinator", 2 },
279 { "Cllc_states_initWaiting", 0 },
280 { "Cllc_states_joiningAllowed", 5 },
281 { "Cllc_states_joiningNotAllowed", 6 },
282 { "Cllc_states_restored", 4 },
283 { "Cllc_states_started", 3 },
284 { "Cllc_states_startingCoordinator", 1 },
285 };
286 const ProtobufCEnumDescriptor cllc_states__descriptor =
287 {
288 PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
289 "Cllc_states",
290 "Cllc_states",
291 "CllcStates",
292 "",
293 7,
294 cllc_states__enum_values_by_number,
295 7,
296 cllc_states__enum_values_by_name,
297 1,
298 cllc_states__value_ranges,
299 NULL,NULL,NULL,NULL /* reserved[1234] */
300 };
301 static const ProtobufCEnumValue cllc_coord_states__enum_values_by_number[5] =
302 {
303 { "Cllc_coordStates_initialized", "CLLC_COORD_STATES__Cllc_coordStates_initialized", 0 },
304 { "Cllc_coordStates_scanActive", "CLLC_COORD_STATES__Cllc_coordStates_scanActive", 1 },
305 { "Cllc_coordStates_scanActiveCnf", "CLLC_COORD_STATES__Cllc_coordStates_scanActiveCnf", 2 },
306 { "Cllc_coordStates_scanEdCnf", "CLLC_COORD_STATES__Cllc_coordStates_scanEdCnf", 3 },
307 { "Cllc_coordStates_startCnf", "CLLC_COORD_STATES__Cllc_coordStates_startCnf", 4 },
308 };
309 static const ProtobufCIntRange cllc_coord_states__value_ranges[] = {
310 {0, 0},{0, 5}
311 };
312 static const ProtobufCEnumValueIndex cllc_coord_states__enum_values_by_name[5] =
313 {
314 { "Cllc_coordStates_initialized", 0 },
315 { "Cllc_coordStates_scanActive", 1 },
316 { "Cllc_coordStates_scanActiveCnf", 2 },
317 { "Cllc_coordStates_scanEdCnf", 3 },
318 { "Cllc_coordStates_startCnf", 4 },
319 };
320 const ProtobufCEnumDescriptor cllc_coord_states__descriptor =
321 {
322 PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
323 "Cllc_coord_states",
324 "Cllc_coord_states",
325 "CllcCoordStates",
326 "",
327 5,
328 cllc_coord_states__enum_values_by_number,
329 5,
330 cllc_coord_states__enum_values_by_name,
331 1,
332 cllc_coord_states__value_ranges,
333 NULL,NULL,NULL,NULL /* reserved[1234] */
334 };