@@ -175,36 +175,41 @@ typedef struct cats_whisker {
175
175
struct cats_whisker * next ;
176
176
} cats_whisker_t ;
177
177
178
- /* @brief Encode a whisker into a byte array
178
+ /**
179
+ * @brief Encode a whisker into a byte array
179
180
*
180
181
* @param whisker The whisker to encode
181
182
* @param out The byte array to write to
182
183
* @return The number of bytes written to out
183
184
*/
184
185
size_t cats_whisker_encode (const cats_whisker_t * whisker , uint8_t * out );
185
186
186
- /* @brief Decode a whisker from a byte array
187
+ /**
188
+ * @brief Decode a whisker from a byte array
187
189
*
188
190
* @param data The byte array to decode
189
191
* @param out The whisker to write to
190
192
* @return CATS_SUCCESS on success, CATS_FAIL on failure
191
193
*/
192
194
int cats_whisker_decode (const uint8_t * data , cats_whisker_t * out );
193
195
194
- /* @brief Get the length of a whisker base type
196
+ /**
197
+ * @brief Get the length of a whisker base type
195
198
*
196
199
* @param type The whisker type
197
200
* @return The length of the whisker base type
198
201
*/
199
202
int cats_whisker_base_len (const cats_whisker_type_t type );
200
203
201
- /* @brief Create a new whisker
204
+ /**
205
+ * @brief Create a new whisker
202
206
*
203
207
* @return A pointer to the new whisker
204
208
*/
205
209
cats_whisker_t * cats_whisker_new ();
206
210
207
- /* @brief Add a future hop to a route whisker
211
+ /**
212
+ * @brief Add a future hop to a route whisker
208
213
*
209
214
* @param route The route whisker to add to
210
215
* @param callsign The callsign of the hop
@@ -213,7 +218,8 @@ cats_whisker_t* cats_whisker_new();
213
218
*/
214
219
cats_route_hop_t * cats_route_add_future_hop (cats_route_whisker_t * route , const char * callsign , uint8_t ssid );
215
220
216
- /* @brief Add a past hop to a route whisker
221
+ /**
222
+ * @brief Add a past hop to a route whisker
217
223
*
218
224
* @param route The route whisker to add to
219
225
* @param callsign The callsign of the hop
@@ -223,21 +229,24 @@ cats_route_hop_t* cats_route_add_future_hop(cats_route_whisker_t* route, const c
223
229
*/
224
230
cats_route_hop_t * cats_route_add_past_hop (cats_route_whisker_t * route , const char * callsign , uint8_t ssid , float rssi );
225
231
226
- /* @brief Add an internet hop to a route whisker
232
+ /**
233
+ * @brief Add an internet hop to a route whisker
227
234
*
228
235
* @param route The route whisker to add to
229
236
* @return A pointer to the new hop
230
237
*/
231
238
cats_route_hop_t * cats_route_add_inet_hop (cats_route_whisker_t * route );
232
239
233
- /* @brief Destroy a route whisker
240
+ /**
241
+ * @brief Destroy a route whisker
234
242
*
235
243
* @param route The route whisker to destroy
236
244
* @note This function must be used rather than free()
237
245
*/
238
246
void cats_route_destroy (cats_route_whisker_t * route );
239
247
240
- /* @brief Create a new route whisker
248
+ /**
249
+ * @brief Create a new route whisker
241
250
*
242
251
* @param max_digipeats The maximum number of digipeats
243
252
* @return The new route whisker
0 commit comments