1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: cllc.proto */
4 #ifndef PROTOBUF_C_cllc_2eproto__INCLUDED
5 #define PROTOBUF_C_cllc_2eproto__INCLUDED
7 #include <protobuf-c/protobuf-c.h>
9 PROTOBUF_C__BEGIN_DECLS
11 #if PROTOBUF_C_VERSION_NUMBER < 1000000
12 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13 #elif 1002001 < PROTOBUF_C_MIN_COMPILER_VERSION
14 # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
15 #endif
17 #include "api_mac.pb-c.h"
19 typedef struct _CllcAssociatedDevices CllcAssociatedDevices;
20 typedef struct _CllcStatistics CllcStatistics;
23 /* --- enums --- */
25 /*
26 *!
27 *Coordinator State Values
28 */
29 typedef enum _CllcStates {
30 /*
31 *! Powered up, not started and waiting for user to start
32 */
33 CLLC_STATES__Cllc_states_initWaiting = 1,
34 /*
35 *! Starting coordinator, scanning and selecting the best parameters
36 */
37 CLLC_STATES__Cllc_states_startingCoordinator = 2,
38 /*
39 *!
40 *Powered up, found network information, and restoring device in network
41 */
42 CLLC_STATES__Cllc_states_initRestoringCoordinator = 3,
43 /*
44 *! Device is operating as coordinator
45 */
46 CLLC_STATES__Cllc_states_started = 4,
47 /*
48 *! Device is restored as coordinator in the network
49 */
50 CLLC_STATES__Cllc_states_restored = 5,
51 /*
52 *! Joining allowed state has changed to allowed
53 */
54 CLLC_STATES__Cllc_states_joiningAllowed = 6,
55 /*
56 *! Joining allowed state has changed to not allowed
57 */
58 CLLC_STATES__Cllc_states_joiningNotAllowed = 7
59 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CLLC_STATES)
60 } CllcStates;
61 /*
62 *!
63 *Coordinator starting State Values
64 */
65 typedef enum _CllcCoordStates {
66 /*
67 *! Initialized state
68 */
69 CLLC_COORD_STATES__Cllc_coordStates_initialized = 0,
70 /*
71 *! MAC coordinator is performing a active scan
72 */
73 CLLC_COORD_STATES__Cllc_coordStates_scanActive = 1,
74 /*
75 *! active scan confirm received
76 */
77 CLLC_COORD_STATES__Cllc_coordStates_scanActiveCnf = 2,
78 /*
79 *! Eneergy detect scan confirm received
80 */
81 CLLC_COORD_STATES__Cllc_coordStates_scanEdCnf = 3,
82 /*
83 *! Start confirm received
84 */
85 CLLC_COORD_STATES__Cllc_coordStates_startCnf = 4
86 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CLLC_COORD_STATES)
87 } CllcCoordStates;
89 /* --- messages --- */
91 /*
92 *! Building block for association table
93 */
94 struct _CllcAssociatedDevices
95 {
96 ProtobufCMessage base;
97 /*
98 *! Short address of associated device
99 */
100 uint32_t shortaddr;
101 /*
102 *! capability information
103 */
104 ApiMacCapabilityInfo *capinfo;
105 /*
106 *! RSSI
107 */
108 int32_t rssi;
109 /*
110 *! Device alive status
111 */
112 uint32_t status;
113 };
114 #define CLLC_ASSOCIATED_DEVICES__INIT \
115 { PROTOBUF_C_MESSAGE_INIT (&cllc_associated_devices__descriptor) \
116 , 0, NULL, 0, 0 }
119 /*
120 *! Cllc statistics
121 */
122 struct _CllcStatistics
123 {
124 ProtobufCMessage base;
125 /*
126 *! number of PA Solicit messages received
127 */
128 uint32_t fhnumpasolicitreceived;
129 /*
130 *! number of PA messages sent
131 */
132 uint32_t fhnumpasent;
133 /*
134 *! number of PC Solicit messages received
135 */
136 uint32_t fhnumpanconfigsolicitsreceived;
137 /*
138 *! number of PC messages sent
139 */
140 uint32_t fhnumpanconfigsent;
141 uint32_t otherstats;
142 };
143 #define CLLC_STATISTICS__INIT \
144 { PROTOBUF_C_MESSAGE_INIT (&cllc_statistics__descriptor) \
145 , 0, 0, 0, 0, 0 }
148 /* CllcAssociatedDevices methods */
149 void cllc_associated_devices__init
150 (CllcAssociatedDevices *message);
151 size_t cllc_associated_devices__get_packed_size
152 (const CllcAssociatedDevices *message);
153 size_t cllc_associated_devices__pack
154 (const CllcAssociatedDevices *message,
155 uint8_t *out);
156 size_t cllc_associated_devices__pack_to_buffer
157 (const CllcAssociatedDevices *message,
158 ProtobufCBuffer *buffer);
159 CllcAssociatedDevices *
160 cllc_associated_devices__unpack
161 (ProtobufCAllocator *allocator,
162 size_t len,
163 const uint8_t *data);
164 void cllc_associated_devices__free_unpacked
165 (CllcAssociatedDevices *message,
166 ProtobufCAllocator *allocator);
167 /* CllcStatistics methods */
168 void cllc_statistics__init
169 (CllcStatistics *message);
170 size_t cllc_statistics__get_packed_size
171 (const CllcStatistics *message);
172 size_t cllc_statistics__pack
173 (const CllcStatistics *message,
174 uint8_t *out);
175 size_t cllc_statistics__pack_to_buffer
176 (const CllcStatistics *message,
177 ProtobufCBuffer *buffer);
178 CllcStatistics *
179 cllc_statistics__unpack
180 (ProtobufCAllocator *allocator,
181 size_t len,
182 const uint8_t *data);
183 void cllc_statistics__free_unpacked
184 (CllcStatistics *message,
185 ProtobufCAllocator *allocator);
186 /* --- per-message closures --- */
188 typedef void (*CllcAssociatedDevices_Closure)
189 (const CllcAssociatedDevices *message,
190 void *closure_data);
191 typedef void (*CllcStatistics_Closure)
192 (const CllcStatistics *message,
193 void *closure_data);
195 /* --- services --- */
198 /* --- descriptors --- */
200 extern const ProtobufCEnumDescriptor cllc_states__descriptor;
201 extern const ProtobufCEnumDescriptor cllc_coord_states__descriptor;
202 extern const ProtobufCMessageDescriptor cllc_associated_devices__descriptor;
203 extern const ProtobufCMessageDescriptor cllc_statistics__descriptor;
205 PROTOBUF_C__END_DECLS
208 #endif /* PROTOBUF_C_cllc_2eproto__INCLUDED */