Dynamixel  2.9.5
RoadNarrows Robotics Dynamixel Package
bsDynaMsgs.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File: bsDynaMsgs.h
4 //
5 /*!
6  * \file
7  *
8  * \brief \h_botsense Server/Client Dynamixel NetMsgs XML Definitions.
9  *
10  * \warning This file was auto-generated on 2018.08.10 13:55:04 from the NetMsgs
11  * XML specification bsDynaMsgs.xml.
12  *
13  * \par Copyright:
14  * (C) 2018. RoadNarrows LLC
15  * (http://www.roadnarrows.com)
16  * All Rights Reserved
17  */
18 ///////////////////////////////////////////////////////////////////////////////
19 
20 
21 #ifndef _BSDYNAMSGS_H
22 #define _BSDYNAMSGS_H
23 
24 #include "rnr/rnrconfig.h"
25 #include "rnr/netmsgs.h"
26 
27 #include "botsense/BotSense.h"
28 #include "Dynamixel/Dynamixel.h"
29 
30 
31 C_DECLS_BEGIN
32 
33 /*!
34  * BsDyna Message Id Enumeration
35  */
36 typedef enum
37 {
38  BsDynaMsgIdNone = 0, ///< no message
39  BsDynaMsgIdReqOpenArgs = 1, ///< ReqOpenArgs
40  BsDynaMsgIdReqSetBaudRate = 2, ///< ReqSetBaudRate
41  BsDynaMsgIdReqRead8 = 3, ///< ReqRead8
42  BsDynaMsgIdRspRead8 = 4, ///< RspRead8
43  BsDynaMsgIdReqRead16 = 5, ///< ReqRead16
44  BsDynaMsgIdRspRead16 = 6, ///< RspRead16
45  BsDynaMsgIdReqWrite8 = 7, ///< ReqWrite8
46  BsDynaMsgIdRspWrite8 = 8, ///< RspWrite8
47  BsDynaMsgIdReqWrite16 = 9, ///< ReqWrite16
48  BsDynaMsgIdRspWrite16 = 10, ///< RspWrite16
49  BsDynaMsgIdReqSyncWrite = 11, ///< ReqSyncWrite
50  BsDynaMsgIdReqPing = 12, ///< ReqPing
51  BsDynaMsgIdRspPing = 13, ///< RspPing
52  BsDynaMsgIdReqReset = 14, ///< ReqReset
53  BsDynaMsgIdReqSetHalfDuplexCtl = 15, ///< ReqSetHalfDuplexCtl
54  BsDynaMsgIdNumOf = 16 ///< number of message ids
56 
57 
58 //-----------------------------------------------------------------------------
59 // Extended Field Types
60 //-----------------------------------------------------------------------------
61 
62 
63 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
64 // Field Type BsDynaWriteTuple Declarations
65 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
66 
67 /*!
68  * WriteTuple Field Type
69  */
70 typedef struct
71 {
72  byte_t m_servo_id; ///< servo_id
73  ushort_t m_val; ///< val
74 } BsDynaWriteTuple_T; ///< WriteTuple structure
75 
76 
77 //-----------------------------------------------------------------------------
78 // Message Types
79 //-----------------------------------------------------------------------------
80 
81 
82 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
83 // Message BsDynaReqOpenArgs Declarations
84 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
85 
86 /*!
87  * Message ReqOpenArgs Structure
88  */
89 typedef struct
90 {
91  uint_t m_baudrate; ///< baudrate
92 } BsDynaReqOpenArgs_T; ///< ReqOpenArgs structure
93 
94 
95 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
96 // Message BsDynaReqSetBaudRate Declarations
97 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
98 
99 /*!
100  * Message ReqSetBaudRate Structure
101  */
102 typedef struct
103 {
104  uint_t m_baudrate; ///< baudrate
105 } BsDynaReqSetBaudRate_T; ///< ReqSetBaudRate structure
106 
107 
108 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
109 // Message BsDynaReqRead8 Declarations
110 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
111 
112 /*!
113  * Message ReqRead8 Structure
114  */
115 typedef struct
116 {
117  byte_t m_servo_id; ///< servo_id
118  byte_t m_addr; ///< addr
119 } BsDynaReqRead8_T; ///< ReqRead8 structure
120 
121 
122 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
123 // Message BsDynaRspRead8 Declarations
124 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
125 
126 /*!
127  * Message RspRead8 Structure
128  */
129 typedef struct
130 {
131  byte_t m_alarms; ///< alarms
132  byte_t m_val; ///< val
133 } BsDynaRspRead8_T; ///< RspRead8 structure
134 
135 
136 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
137 // Message BsDynaReqRead16 Declarations
138 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
139 
140 /*!
141  * Message ReqRead16 Structure
142  */
143 typedef struct
144 {
145  byte_t m_servo_id; ///< servo_id
146  byte_t m_addr; ///< addr
147 } BsDynaReqRead16_T; ///< ReqRead16 structure
148 
149 
150 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
151 // Message BsDynaRspRead16 Declarations
152 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
153 
154 /*!
155  * Message RspRead16 Structure
156  */
157 typedef struct
158 {
159  byte_t m_alarms; ///< alarms
160  ushort_t m_val; ///< val
161 } BsDynaRspRead16_T; ///< RspRead16 structure
162 
163 
164 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
165 // Message BsDynaReqWrite8 Declarations
166 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
167 
168 /*!
169  * Message ReqWrite8 Structure
170  */
171 typedef struct
172 {
173  byte_t m_servo_id; ///< servo_id
174  byte_t m_addr; ///< addr
175  byte_t m_val; ///< val
176 } BsDynaReqWrite8_T; ///< ReqWrite8 structure
177 
178 
179 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
180 // Message BsDynaRspWrite8 Declarations
181 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
182 
183 /*!
184  * Message RspWrite8 Structure
185  */
186 typedef struct
187 {
188  byte_t m_alarms; ///< alarms
189 } BsDynaRspWrite8_T; ///< RspWrite8 structure
190 
191 
192 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
193 // Message BsDynaReqWrite16 Declarations
194 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
195 
196 /*!
197  * Message ReqWrite16 Structure
198  */
199 typedef struct
200 {
201  byte_t m_servo_id; ///< servo_id
202  byte_t m_addr; ///< addr
203  ushort_t m_val; ///< val
204 } BsDynaReqWrite16_T; ///< ReqWrite16 structure
205 
206 
207 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
208 // Message BsDynaRspWrite16 Declarations
209 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
210 
211 /*!
212  * Message RspWrite16 Structure
213  */
214 typedef struct
215 {
216  byte_t m_alarms; ///< alarms
217 } BsDynaRspWrite16_T; ///< RspWrite16 structure
218 
219 
220 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
221 // Message BsDynaReqSyncWrite Declarations
222 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
223 
224 /*!
225  * Message ReqSyncWrite Structure
226  */
227 typedef struct
228 {
229  byte_t m_addr; ///< addr
230  byte_t m_data_size; ///< data_size
231  struct
232  {
233  size_t m_count; ///< vector item count
234  union
235  {
236  void *m_pAlign; ///< force alignment
238  ///< the item vector
239  } u; ///< aligned vector items
240  } m_tuples; ///< vector
241 } BsDynaReqSyncWrite_T; ///< ReqSyncWrite structure
242 
243 
244 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
245 // Message BsDynaReqPing Declarations
246 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
247 
248 /*!
249  * Message ReqPing Structure
250  */
251 typedef struct
252 {
253  byte_t m_servo_id; ///< servo_id
254 } BsDynaReqPing_T; ///< ReqPing structure
255 
256 
257 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
258 // Message BsDynaRspPing Declarations
259 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
260 
261 /*!
262  * Message RspPing Structure
263  */
264 typedef struct
265 {
266  bool_t m_pong; ///< pong
267 } BsDynaRspPing_T; ///< RspPing structure
268 
269 
270 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
271 // Message BsDynaReqReset Declarations
272 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
273 
274 /*!
275  * Message ReqReset Structure
276  */
277 typedef struct
278 {
279  byte_t m_servo_id; ///< servo_id
280 } BsDynaReqReset_T; ///< ReqReset structure
281 
282 
283 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
284 // Message BsDynaReqSetHalfDuplexCtl Declarations
285 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
286 
287 /*!
288  * Message ReqSetHalfDuplexCtl Structure
289  */
290 typedef struct
291 {
292  uint_t m_signal; ///< signal
293 } BsDynaReqSetHalfDuplexCtl_T; ///< ReqSetHalfDuplexCtl structure
294 
295 
296 //-----------------------------------------------------------------------------
297 // External Data
298 //-----------------------------------------------------------------------------
299 
300 //
301 // BsDyna Message Definition Look-Up Table.
302 // (indexed by BsDynaMsgId_T enum)
303 //
304 extern const NMMsgDef_T *BsDynaMsgDefLookupTbl[];
305 
306 //
307 // BsDyna Maximum Message Body Length (bytes) Look-Up Table.
308 // (indexed by BsDynaMsgId_T enum)
309 //
310 extern size_t BsDynaMsgMaxLenLookupTbl[];
311 
312 
313 //-----------------------------------------------------------------------------
314 // Function Prototypes
315 //-----------------------------------------------------------------------------
316 
317 extern const NMMsgDef_T * BsDynaLookupMsgDef( BsDynaMsgId_T eMsgId );
318 
319 extern size_t BsDynaLookupMsgMaxLen( BsDynaMsgId_T eMsgId );
320 
321 extern int BsDynaPackMsg( BsDynaMsgId_T eMsgId,
322  void * pStruct,
323  byte_t buf[],
324  size_t bufSize,
325  bool_t bTrace );
326 
327 extern int BsDynaUnpackMsg( BsDynaMsgId_T eMsgId,
328  byte_t buf[],
329  size_t uMsgLen,
330  void * pStruct,
331  bool_t bTrace );
332 
333 /*!
334  * \brief Pack a BsDynaReqOpenArgs ITV message in big-endian byte order
335  * into the output buffer.
336  *
337  * \param [in] pStruct Pointer to the associated, populated message
338  * structure.
339  * \param [out] buf Output message buffer.
340  * \param bufSize Size of output buffer.
341  * \param bTrace Do [not] trace packing.
342  *
343  * \return
344  * On success, returns the number of bytes packed.
345  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
346  */
347 INLINE_IN_H int BsDynaPackReqOpenArgs( BsDynaReqOpenArgs_T * pStruct,
348  byte_t buf[],
349  size_t bufSize,
350  bool_t bTrace )
351 {
352  return BsDynaPackMsg(BsDynaMsgIdReqOpenArgs, pStruct, buf, bufSize, bTrace);
353 }
354 
355 /*!
356  * \brief Unpack a BsDynaReqOpenArgs ITV message in big-endian byte order
357  * from the input buffer.
358  *
359  * \param [in] buf Output message buffer.
360  * \param uMsgLen Length of message (bytes) in input buffer.
361  * \param [out] pStruct Pointer to the associated message structure.
362  * \param bTrace Do [not] trace packing.
363  *
364  * \return
365  * On success, returns the number of bytes unpacked.
366  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
367  */
368 INLINE_IN_H int BsDynaUnpackReqOpenArgs( byte_t buf[],
369  size_t uMsgLen,
370  BsDynaReqOpenArgs_T * pStruct,
371  bool_t bTrace )
372 {
373  return BsDynaUnpackMsg(BsDynaMsgIdReqOpenArgs, buf, uMsgLen, pStruct, bTrace);
374 }
375 
376 /*!
377  * \brief Pack a BsDynaReqSetBaudRate ITV message in big-endian byte order
378  * into the output buffer.
379  *
380  * \param [in] pStruct Pointer to the associated, populated message
381  * structure.
382  * \param [out] buf Output message buffer.
383  * \param bufSize Size of output buffer.
384  * \param bTrace Do [not] trace packing.
385  *
386  * \return
387  * On success, returns the number of bytes packed.
388  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
389  */
391  byte_t buf[],
392  size_t bufSize,
393  bool_t bTrace )
394 {
395  return BsDynaPackMsg(BsDynaMsgIdReqSetBaudRate, pStruct, buf, bufSize, bTrace);
396 }
397 
398 /*!
399  * \brief Unpack a BsDynaReqSetBaudRate ITV message in big-endian byte order
400  * from the input buffer.
401  *
402  * \param [in] buf Output message buffer.
403  * \param uMsgLen Length of message (bytes) in input buffer.
404  * \param [out] pStruct Pointer to the associated message structure.
405  * \param bTrace Do [not] trace packing.
406  *
407  * \return
408  * On success, returns the number of bytes unpacked.
409  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
410  */
411 INLINE_IN_H int BsDynaUnpackReqSetBaudRate( byte_t buf[],
412  size_t uMsgLen,
413  BsDynaReqSetBaudRate_T * pStruct,
414  bool_t bTrace )
415 {
416  return BsDynaUnpackMsg(BsDynaMsgIdReqSetBaudRate, buf, uMsgLen, pStruct, bTrace);
417 }
418 
419 /*!
420  * \brief Pack a BsDynaReqRead8 ITV message in big-endian byte order
421  * into the output buffer.
422  *
423  * \param [in] pStruct Pointer to the associated, populated message
424  * structure.
425  * \param [out] buf Output message buffer.
426  * \param bufSize Size of output buffer.
427  * \param bTrace Do [not] trace packing.
428  *
429  * \return
430  * On success, returns the number of bytes packed.
431  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
432  */
433 INLINE_IN_H int BsDynaPackReqRead8( BsDynaReqRead8_T * pStruct,
434  byte_t buf[],
435  size_t bufSize,
436  bool_t bTrace )
437 {
438  return BsDynaPackMsg(BsDynaMsgIdReqRead8, pStruct, buf, bufSize, bTrace);
439 }
440 
441 /*!
442  * \brief Unpack a BsDynaReqRead8 ITV message in big-endian byte order
443  * from the input buffer.
444  *
445  * \param [in] buf Output message buffer.
446  * \param uMsgLen Length of message (bytes) in input buffer.
447  * \param [out] pStruct Pointer to the associated message structure.
448  * \param bTrace Do [not] trace packing.
449  *
450  * \return
451  * On success, returns the number of bytes unpacked.
452  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
453  */
454 INLINE_IN_H int BsDynaUnpackReqRead8( byte_t buf[],
455  size_t uMsgLen,
456  BsDynaReqRead8_T * pStruct,
457  bool_t bTrace )
458 {
459  return BsDynaUnpackMsg(BsDynaMsgIdReqRead8, buf, uMsgLen, pStruct, bTrace);
460 }
461 
462 /*!
463  * \brief Pack a BsDynaRspRead8 ITV message in big-endian byte order
464  * into the output buffer.
465  *
466  * \param [in] pStruct Pointer to the associated, populated message
467  * structure.
468  * \param [out] buf Output message buffer.
469  * \param bufSize Size of output buffer.
470  * \param bTrace Do [not] trace packing.
471  *
472  * \return
473  * On success, returns the number of bytes packed.
474  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
475  */
476 INLINE_IN_H int BsDynaPackRspRead8( BsDynaRspRead8_T * pStruct,
477  byte_t buf[],
478  size_t bufSize,
479  bool_t bTrace )
480 {
481  return BsDynaPackMsg(BsDynaMsgIdRspRead8, pStruct, buf, bufSize, bTrace);
482 }
483 
484 /*!
485  * \brief Unpack a BsDynaRspRead8 ITV message in big-endian byte order
486  * from the input buffer.
487  *
488  * \param [in] buf Output message buffer.
489  * \param uMsgLen Length of message (bytes) in input buffer.
490  * \param [out] pStruct Pointer to the associated message structure.
491  * \param bTrace Do [not] trace packing.
492  *
493  * \return
494  * On success, returns the number of bytes unpacked.
495  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
496  */
497 INLINE_IN_H int BsDynaUnpackRspRead8( byte_t buf[],
498  size_t uMsgLen,
499  BsDynaRspRead8_T * pStruct,
500  bool_t bTrace )
501 {
502  return BsDynaUnpackMsg(BsDynaMsgIdRspRead8, buf, uMsgLen, pStruct, bTrace);
503 }
504 
505 /*!
506  * \brief Pack a BsDynaReqRead16 ITV message in big-endian byte order
507  * into the output buffer.
508  *
509  * \param [in] pStruct Pointer to the associated, populated message
510  * structure.
511  * \param [out] buf Output message buffer.
512  * \param bufSize Size of output buffer.
513  * \param bTrace Do [not] trace packing.
514  *
515  * \return
516  * On success, returns the number of bytes packed.
517  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
518  */
519 INLINE_IN_H int BsDynaPackReqRead16( BsDynaReqRead16_T * pStruct,
520  byte_t buf[],
521  size_t bufSize,
522  bool_t bTrace )
523 {
524  return BsDynaPackMsg(BsDynaMsgIdReqRead16, pStruct, buf, bufSize, bTrace);
525 }
526 
527 /*!
528  * \brief Unpack a BsDynaReqRead16 ITV message in big-endian byte order
529  * from the input buffer.
530  *
531  * \param [in] buf Output message buffer.
532  * \param uMsgLen Length of message (bytes) in input buffer.
533  * \param [out] pStruct Pointer to the associated message structure.
534  * \param bTrace Do [not] trace packing.
535  *
536  * \return
537  * On success, returns the number of bytes unpacked.
538  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
539  */
540 INLINE_IN_H int BsDynaUnpackReqRead16( byte_t buf[],
541  size_t uMsgLen,
542  BsDynaReqRead16_T * pStruct,
543  bool_t bTrace )
544 {
545  return BsDynaUnpackMsg(BsDynaMsgIdReqRead16, buf, uMsgLen, pStruct, bTrace);
546 }
547 
548 /*!
549  * \brief Pack a BsDynaRspRead16 ITV message in big-endian byte order
550  * into the output buffer.
551  *
552  * \param [in] pStruct Pointer to the associated, populated message
553  * structure.
554  * \param [out] buf Output message buffer.
555  * \param bufSize Size of output buffer.
556  * \param bTrace Do [not] trace packing.
557  *
558  * \return
559  * On success, returns the number of bytes packed.
560  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
561  */
562 INLINE_IN_H int BsDynaPackRspRead16( BsDynaRspRead16_T * pStruct,
563  byte_t buf[],
564  size_t bufSize,
565  bool_t bTrace )
566 {
567  return BsDynaPackMsg(BsDynaMsgIdRspRead16, pStruct, buf, bufSize, bTrace);
568 }
569 
570 /*!
571  * \brief Unpack a BsDynaRspRead16 ITV message in big-endian byte order
572  * from the input buffer.
573  *
574  * \param [in] buf Output message buffer.
575  * \param uMsgLen Length of message (bytes) in input buffer.
576  * \param [out] pStruct Pointer to the associated message structure.
577  * \param bTrace Do [not] trace packing.
578  *
579  * \return
580  * On success, returns the number of bytes unpacked.
581  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
582  */
583 INLINE_IN_H int BsDynaUnpackRspRead16( byte_t buf[],
584  size_t uMsgLen,
585  BsDynaRspRead16_T * pStruct,
586  bool_t bTrace )
587 {
588  return BsDynaUnpackMsg(BsDynaMsgIdRspRead16, buf, uMsgLen, pStruct, bTrace);
589 }
590 
591 /*!
592  * \brief Pack a BsDynaReqWrite8 ITV message in big-endian byte order
593  * into the output buffer.
594  *
595  * \param [in] pStruct Pointer to the associated, populated message
596  * structure.
597  * \param [out] buf Output message buffer.
598  * \param bufSize Size of output buffer.
599  * \param bTrace Do [not] trace packing.
600  *
601  * \return
602  * On success, returns the number of bytes packed.
603  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
604  */
605 INLINE_IN_H int BsDynaPackReqWrite8( BsDynaReqWrite8_T * pStruct,
606  byte_t buf[],
607  size_t bufSize,
608  bool_t bTrace )
609 {
610  return BsDynaPackMsg(BsDynaMsgIdReqWrite8, pStruct, buf, bufSize, bTrace);
611 }
612 
613 /*!
614  * \brief Unpack a BsDynaReqWrite8 ITV message in big-endian byte order
615  * from the input buffer.
616  *
617  * \param [in] buf Output message buffer.
618  * \param uMsgLen Length of message (bytes) in input buffer.
619  * \param [out] pStruct Pointer to the associated message structure.
620  * \param bTrace Do [not] trace packing.
621  *
622  * \return
623  * On success, returns the number of bytes unpacked.
624  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
625  */
626 INLINE_IN_H int BsDynaUnpackReqWrite8( byte_t buf[],
627  size_t uMsgLen,
628  BsDynaReqWrite8_T * pStruct,
629  bool_t bTrace )
630 {
631  return BsDynaUnpackMsg(BsDynaMsgIdReqWrite8, buf, uMsgLen, pStruct, bTrace);
632 }
633 
634 /*!
635  * \brief Pack a BsDynaRspWrite8 ITV message in big-endian byte order
636  * into the output buffer.
637  *
638  * \param [in] pStruct Pointer to the associated, populated message
639  * structure.
640  * \param [out] buf Output message buffer.
641  * \param bufSize Size of output buffer.
642  * \param bTrace Do [not] trace packing.
643  *
644  * \return
645  * On success, returns the number of bytes packed.
646  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
647  */
648 INLINE_IN_H int BsDynaPackRspWrite8( BsDynaRspWrite8_T * pStruct,
649  byte_t buf[],
650  size_t bufSize,
651  bool_t bTrace )
652 {
653  return BsDynaPackMsg(BsDynaMsgIdRspWrite8, pStruct, buf, bufSize, bTrace);
654 }
655 
656 /*!
657  * \brief Unpack a BsDynaRspWrite8 ITV message in big-endian byte order
658  * from the input buffer.
659  *
660  * \param [in] buf Output message buffer.
661  * \param uMsgLen Length of message (bytes) in input buffer.
662  * \param [out] pStruct Pointer to the associated message structure.
663  * \param bTrace Do [not] trace packing.
664  *
665  * \return
666  * On success, returns the number of bytes unpacked.
667  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
668  */
669 INLINE_IN_H int BsDynaUnpackRspWrite8( byte_t buf[],
670  size_t uMsgLen,
671  BsDynaRspWrite8_T * pStruct,
672  bool_t bTrace )
673 {
674  return BsDynaUnpackMsg(BsDynaMsgIdRspWrite8, buf, uMsgLen, pStruct, bTrace);
675 }
676 
677 /*!
678  * \brief Pack a BsDynaReqWrite16 ITV message in big-endian byte order
679  * into the output buffer.
680  *
681  * \param [in] pStruct Pointer to the associated, populated message
682  * structure.
683  * \param [out] buf Output message buffer.
684  * \param bufSize Size of output buffer.
685  * \param bTrace Do [not] trace packing.
686  *
687  * \return
688  * On success, returns the number of bytes packed.
689  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
690  */
691 INLINE_IN_H int BsDynaPackReqWrite16( BsDynaReqWrite16_T * pStruct,
692  byte_t buf[],
693  size_t bufSize,
694  bool_t bTrace )
695 {
696  return BsDynaPackMsg(BsDynaMsgIdReqWrite16, pStruct, buf, bufSize, bTrace);
697 }
698 
699 /*!
700  * \brief Unpack a BsDynaReqWrite16 ITV message in big-endian byte order
701  * from the input buffer.
702  *
703  * \param [in] buf Output message buffer.
704  * \param uMsgLen Length of message (bytes) in input buffer.
705  * \param [out] pStruct Pointer to the associated message structure.
706  * \param bTrace Do [not] trace packing.
707  *
708  * \return
709  * On success, returns the number of bytes unpacked.
710  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
711  */
712 INLINE_IN_H int BsDynaUnpackReqWrite16( byte_t buf[],
713  size_t uMsgLen,
714  BsDynaReqWrite16_T * pStruct,
715  bool_t bTrace )
716 {
717  return BsDynaUnpackMsg(BsDynaMsgIdReqWrite16, buf, uMsgLen, pStruct, bTrace);
718 }
719 
720 /*!
721  * \brief Pack a BsDynaRspWrite16 ITV message in big-endian byte order
722  * into the output buffer.
723  *
724  * \param [in] pStruct Pointer to the associated, populated message
725  * structure.
726  * \param [out] buf Output message buffer.
727  * \param bufSize Size of output buffer.
728  * \param bTrace Do [not] trace packing.
729  *
730  * \return
731  * On success, returns the number of bytes packed.
732  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
733  */
734 INLINE_IN_H int BsDynaPackRspWrite16( BsDynaRspWrite16_T * pStruct,
735  byte_t buf[],
736  size_t bufSize,
737  bool_t bTrace )
738 {
739  return BsDynaPackMsg(BsDynaMsgIdRspWrite16, pStruct, buf, bufSize, bTrace);
740 }
741 
742 /*!
743  * \brief Unpack a BsDynaRspWrite16 ITV message in big-endian byte order
744  * from the input buffer.
745  *
746  * \param [in] buf Output message buffer.
747  * \param uMsgLen Length of message (bytes) in input buffer.
748  * \param [out] pStruct Pointer to the associated message structure.
749  * \param bTrace Do [not] trace packing.
750  *
751  * \return
752  * On success, returns the number of bytes unpacked.
753  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
754  */
755 INLINE_IN_H int BsDynaUnpackRspWrite16( byte_t buf[],
756  size_t uMsgLen,
757  BsDynaRspWrite16_T * pStruct,
758  bool_t bTrace )
759 {
760  return BsDynaUnpackMsg(BsDynaMsgIdRspWrite16, buf, uMsgLen, pStruct, bTrace);
761 }
762 
763 /*!
764  * \brief Pack a BsDynaReqSyncWrite ITV message in big-endian byte order
765  * into the output buffer.
766  *
767  * \param [in] pStruct Pointer to the associated, populated message
768  * structure.
769  * \param [out] buf Output message buffer.
770  * \param bufSize Size of output buffer.
771  * \param bTrace Do [not] trace packing.
772  *
773  * \return
774  * On success, returns the number of bytes packed.
775  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
776  */
777 INLINE_IN_H int BsDynaPackReqSyncWrite( BsDynaReqSyncWrite_T * pStruct,
778  byte_t buf[],
779  size_t bufSize,
780  bool_t bTrace )
781 {
782  return BsDynaPackMsg(BsDynaMsgIdReqSyncWrite, pStruct, buf, bufSize, bTrace);
783 }
784 
785 /*!
786  * \brief Unpack a BsDynaReqSyncWrite ITV message in big-endian byte order
787  * from the input buffer.
788  *
789  * \param [in] buf Output message buffer.
790  * \param uMsgLen Length of message (bytes) in input buffer.
791  * \param [out] pStruct Pointer to the associated message structure.
792  * \param bTrace Do [not] trace packing.
793  *
794  * \return
795  * On success, returns the number of bytes unpacked.
796  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
797  */
798 INLINE_IN_H int BsDynaUnpackReqSyncWrite( byte_t buf[],
799  size_t uMsgLen,
800  BsDynaReqSyncWrite_T * pStruct,
801  bool_t bTrace )
802 {
803  return BsDynaUnpackMsg(BsDynaMsgIdReqSyncWrite, buf, uMsgLen, pStruct, bTrace);
804 }
805 
806 /*!
807  * \brief Pack a BsDynaReqPing ITV message in big-endian byte order
808  * into the output buffer.
809  *
810  * \param [in] pStruct Pointer to the associated, populated message
811  * structure.
812  * \param [out] buf Output message buffer.
813  * \param bufSize Size of output buffer.
814  * \param bTrace Do [not] trace packing.
815  *
816  * \return
817  * On success, returns the number of bytes packed.
818  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
819  */
820 INLINE_IN_H int BsDynaPackReqPing( BsDynaReqPing_T * pStruct,
821  byte_t buf[],
822  size_t bufSize,
823  bool_t bTrace )
824 {
825  return BsDynaPackMsg(BsDynaMsgIdReqPing, pStruct, buf, bufSize, bTrace);
826 }
827 
828 /*!
829  * \brief Unpack a BsDynaReqPing ITV message in big-endian byte order
830  * from the input buffer.
831  *
832  * \param [in] buf Output message buffer.
833  * \param uMsgLen Length of message (bytes) in input buffer.
834  * \param [out] pStruct Pointer to the associated message structure.
835  * \param bTrace Do [not] trace packing.
836  *
837  * \return
838  * On success, returns the number of bytes unpacked.
839  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
840  */
841 INLINE_IN_H int BsDynaUnpackReqPing( byte_t buf[],
842  size_t uMsgLen,
843  BsDynaReqPing_T * pStruct,
844  bool_t bTrace )
845 {
846  return BsDynaUnpackMsg(BsDynaMsgIdReqPing, buf, uMsgLen, pStruct, bTrace);
847 }
848 
849 /*!
850  * \brief Pack a BsDynaRspPing ITV message in big-endian byte order
851  * into the output buffer.
852  *
853  * \param [in] pStruct Pointer to the associated, populated message
854  * structure.
855  * \param [out] buf Output message buffer.
856  * \param bufSize Size of output buffer.
857  * \param bTrace Do [not] trace packing.
858  *
859  * \return
860  * On success, returns the number of bytes packed.
861  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
862  */
863 INLINE_IN_H int BsDynaPackRspPing( BsDynaRspPing_T * pStruct,
864  byte_t buf[],
865  size_t bufSize,
866  bool_t bTrace )
867 {
868  return BsDynaPackMsg(BsDynaMsgIdRspPing, pStruct, buf, bufSize, bTrace);
869 }
870 
871 /*!
872  * \brief Unpack a BsDynaRspPing ITV message in big-endian byte order
873  * from the input buffer.
874  *
875  * \param [in] buf Output message buffer.
876  * \param uMsgLen Length of message (bytes) in input buffer.
877  * \param [out] pStruct Pointer to the associated message structure.
878  * \param bTrace Do [not] trace packing.
879  *
880  * \return
881  * On success, returns the number of bytes unpacked.
882  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
883  */
884 INLINE_IN_H int BsDynaUnpackRspPing( byte_t buf[],
885  size_t uMsgLen,
886  BsDynaRspPing_T * pStruct,
887  bool_t bTrace )
888 {
889  return BsDynaUnpackMsg(BsDynaMsgIdRspPing, buf, uMsgLen, pStruct, bTrace);
890 }
891 
892 /*!
893  * \brief Pack a BsDynaReqReset ITV message in big-endian byte order
894  * into the output buffer.
895  *
896  * \param [in] pStruct Pointer to the associated, populated message
897  * structure.
898  * \param [out] buf Output message buffer.
899  * \param bufSize Size of output buffer.
900  * \param bTrace Do [not] trace packing.
901  *
902  * \return
903  * On success, returns the number of bytes packed.
904  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
905  */
906 INLINE_IN_H int BsDynaPackReqReset( BsDynaReqReset_T * pStruct,
907  byte_t buf[],
908  size_t bufSize,
909  bool_t bTrace )
910 {
911  return BsDynaPackMsg(BsDynaMsgIdReqReset, pStruct, buf, bufSize, bTrace);
912 }
913 
914 /*!
915  * \brief Unpack a BsDynaReqReset ITV message in big-endian byte order
916  * from the input buffer.
917  *
918  * \param [in] buf Output message buffer.
919  * \param uMsgLen Length of message (bytes) in input buffer.
920  * \param [out] pStruct Pointer to the associated message structure.
921  * \param bTrace Do [not] trace packing.
922  *
923  * \return
924  * On success, returns the number of bytes unpacked.
925  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
926  */
927 INLINE_IN_H int BsDynaUnpackReqReset( byte_t buf[],
928  size_t uMsgLen,
929  BsDynaReqReset_T * pStruct,
930  bool_t bTrace )
931 {
932  return BsDynaUnpackMsg(BsDynaMsgIdReqReset, buf, uMsgLen, pStruct, bTrace);
933 }
934 
935 /*!
936  * \brief Pack a BsDynaReqSetHalfDuplexCtl ITV message in big-endian byte order
937  * into the output buffer.
938  *
939  * \param [in] pStruct Pointer to the associated, populated message
940  * structure.
941  * \param [out] buf Output message buffer.
942  * \param bufSize Size of output buffer.
943  * \param bTrace Do [not] trace packing.
944  *
945  * \return
946  * On success, returns the number of bytes packed.
947  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
948  */
950  byte_t buf[],
951  size_t bufSize,
952  bool_t bTrace )
953 {
954  return BsDynaPackMsg(BsDynaMsgIdReqSetHalfDuplexCtl, pStruct, buf, bufSize, bTrace);
955 }
956 
957 /*!
958  * \brief Unpack a BsDynaReqSetHalfDuplexCtl ITV message in big-endian byte order
959  * from the input buffer.
960  *
961  * \param [in] buf Output message buffer.
962  * \param uMsgLen Length of message (bytes) in input buffer.
963  * \param [out] pStruct Pointer to the associated message structure.
964  * \param bTrace Do [not] trace packing.
965  *
966  * \return
967  * On success, returns the number of bytes unpacked.
968  * On error, returns the appropriate \h_lt 0 negated NM_ECODE.
969  */
970 INLINE_IN_H int BsDynaUnpackReqSetHalfDuplexCtl( byte_t buf[],
971  size_t uMsgLen,
972  BsDynaReqSetHalfDuplexCtl_T * pStruct,
973  bool_t bTrace )
974 {
975  return BsDynaUnpackMsg(BsDynaMsgIdReqSetHalfDuplexCtl, buf, uMsgLen, pStruct, bTrace);
976 }
977 
978 
979 C_DECLS_END
980 
981 
982 #endif // _BSDYNAMSGS_H
INLINE_IN_H int BsDynaPackReqSyncWrite(BsDynaReqSyncWrite_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqSyncWrite ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:777
byte_t m_addr
addr
Definition: bsDynaMsgs.h:202
bool_t m_pong
pong
Definition: bsDynaMsgs.h:266
byte_t m_addr
addr
Definition: bsDynaMsgs.h:118
INLINE_IN_H int BsDynaPackReqSetHalfDuplexCtl(BsDynaReqSetHalfDuplexCtl_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqSetHalfDuplexCtl ITV message in big-endian byte order into the output buffer...
Definition: bsDynaMsgs.h:949
byte_t m_data_size
data_size
Definition: bsDynaMsgs.h:230
INLINE_IN_H int BsDynaPackRspRead16(BsDynaRspRead16_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaRspRead16 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:562
INLINE_IN_H int BsDynaPackReqWrite8(BsDynaReqWrite8_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqWrite8 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:605
ReqSetBaudRate.
Definition: bsDynaMsgs.h:40
INLINE_IN_H int BsDynaPackRspWrite8(BsDynaRspWrite8_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaRspWrite8 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:648
INLINE_IN_H int BsDynaUnpackReqRead8(byte_t buf[], size_t uMsgLen, BsDynaReqRead8_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqRead8 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:454
INLINE_IN_H int BsDynaUnpackRspWrite8(byte_t buf[], size_t uMsgLen, BsDynaRspWrite8_T *pStruct, bool_t bTrace)
Unpack a BsDynaRspWrite8 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:669
INLINE_IN_H int BsDynaUnpackReqSyncWrite(byte_t buf[], size_t uMsgLen, BsDynaReqSyncWrite_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqSyncWrite ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:798
INLINE_IN_H int BsDynaPackReqReset(BsDynaReqReset_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqReset ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:906
INLINE_IN_H int BsDynaUnpackReqSetHalfDuplexCtl(byte_t buf[], size_t uMsgLen, BsDynaReqSetHalfDuplexCtl_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqSetHalfDuplexCtl ITV message in big-endian byte order from the input buffer...
Definition: bsDynaMsgs.h:970
INLINE_IN_H int BsDynaPackReqOpenArgs(BsDynaReqOpenArgs_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqOpenArgs ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:347
byte_t m_servo_id
servo_id
Definition: bsDynaMsgs.h:173
ushort_t m_val
val
Definition: bsDynaMsgs.h:160
uint_t m_baudrate
baudrate
Definition: bsDynaMsgs.h:104
ReqSetHalfDuplexCtl.
Definition: bsDynaMsgs.h:53
RspWrite16.
Definition: bsDynaMsgs.h:48
byte_t m_servo_id
servo_id
Definition: bsDynaMsgs.h:253
byte_t m_servo_id
servo_id
Definition: bsDynaMsgs.h:201
INLINE_IN_H int BsDynaPackRspRead8(BsDynaRspRead8_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaRspRead8 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:476
INLINE_IN_H int BsDynaUnpackReqPing(byte_t buf[], size_t uMsgLen, BsDynaReqPing_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqPing ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:841
size_t BsDynaMsgMaxLenLookupTbl[]
Definition: bsDynaMsgs.c:907
int BsDynaPackMsg(BsDynaMsgId_T eMsgId, void *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a ITV message in big-endian byte order.
Definition: bsDynaMsgs.c:993
#define DYNA_ID_NUMOF
number of unique servo id&#39;s
Definition: Dynamixel.h:148
byte_t m_addr
addr
Definition: bsDynaMsgs.h:174
ReqOpenArgs.
Definition: bsDynaMsgs.h:39
INLINE_IN_H int BsDynaUnpackRspRead8(byte_t buf[], size_t uMsgLen, BsDynaRspRead8_T *pStruct, bool_t bTrace)
Unpack a BsDynaRspRead8 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:497
byte_t m_alarms
alarms
Definition: bsDynaMsgs.h:188
byte_t m_val
val
Definition: bsDynaMsgs.h:132
INLINE_IN_H int BsDynaUnpackReqReset(byte_t buf[], size_t uMsgLen, BsDynaReqReset_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqReset ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:927
INLINE_IN_H int BsDynaUnpackReqSetBaudRate(byte_t buf[], size_t uMsgLen, BsDynaReqSetBaudRate_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqSetBaudRate ITV message in big-endian byte order from the input buffer...
Definition: bsDynaMsgs.h:411
const NMMsgDef_T * BsDynaLookupMsgDef(BsDynaMsgId_T eMsgId)
Look up the message definition associated with the message id.
Definition: bsDynaMsgs.c:943
INLINE_IN_H int BsDynaPackReqRead8(BsDynaReqRead8_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqRead8 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:433
byte_t m_addr
addr
Definition: bsDynaMsgs.h:229
int BsDynaUnpackMsg(BsDynaMsgId_T eMsgId, byte_t buf[], size_t uMsgLen, void *pStruct, bool_t bTrace)
Unpack a ITV message in big-endian byte order.
Definition: bsDynaMsgs.c:1031
INLINE_IN_H int BsDynaPackReqWrite16(BsDynaReqWrite16_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqWrite16 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:691
ReqSyncWrite.
Definition: bsDynaMsgs.h:49
INLINE_IN_H int BsDynaPackRspWrite16(BsDynaRspWrite16_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaRspWrite16 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:734
uint_t m_baudrate
baudrate
Definition: bsDynaMsgs.h:91
ReqWrite16.
Definition: bsDynaMsgs.h:47
size_t m_count
vector item count
Definition: bsDynaMsgs.h:233
number of message ids
Definition: bsDynaMsgs.h:54
byte_t m_servo_id
servo_id
Definition: bsDynaMsgs.h:117
INLINE_IN_H int BsDynaUnpackRspWrite16(byte_t buf[], size_t uMsgLen, BsDynaRspWrite16_T *pStruct, bool_t bTrace)
Unpack a BsDynaRspWrite16 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:755
ushort_t m_val
val
Definition: bsDynaMsgs.h:73
INLINE_IN_H int BsDynaUnpackReqOpenArgs(byte_t buf[], size_t uMsgLen, BsDynaReqOpenArgs_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqOpenArgs ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:368
INLINE_IN_H int BsDynaPackReqPing(BsDynaReqPing_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqPing ITV message in big-endian byte order into the output buffer. ...
Definition: bsDynaMsgs.h:820
BsDynaMsgId_T
Definition: bsDynaMsgs.h:36
byte_t m_alarms
alarms
Definition: bsDynaMsgs.h:159
INLINE_IN_H int BsDynaUnpackRspRead16(byte_t buf[], size_t uMsgLen, BsDynaRspRead16_T *pStruct, bool_t bTrace)
Unpack a BsDynaRspRead16 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:583
byte_t m_servo_id
servo_id
Definition: bsDynaMsgs.h:279
INLINE_IN_H int BsDynaUnpackRspPing(byte_t buf[], size_t uMsgLen, BsDynaRspPing_T *pStruct, bool_t bTrace)
Unpack a BsDynaRspPing ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:884
INLINE_IN_H int BsDynaPackReqRead16(BsDynaReqRead16_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqRead16 ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:519
byte_t m_addr
addr
Definition: bsDynaMsgs.h:146
no message
Definition: bsDynaMsgs.h:38
byte_t m_servo_id
servo_id
Definition: bsDynaMsgs.h:145
const NMMsgDef_T * BsDynaMsgDefLookupTbl[]
Definition: bsDynaMsgs.c:883
RoadNarrows Dynamixel Top-Level Package Header File.
size_t BsDynaLookupMsgMaxLen(BsDynaMsgId_T eMsgId)
Look up the message maximum length associated with the message id.
Definition: bsDynaMsgs.c:967
INLINE_IN_H int BsDynaPackRspPing(BsDynaRspPing_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaRspPing ITV message in big-endian byte order into the output buffer. ...
Definition: bsDynaMsgs.h:863
INLINE_IN_H int BsDynaPackReqSetBaudRate(BsDynaReqSetBaudRate_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsDynaReqSetBaudRate ITV message in big-endian byte order into the output buffer.
Definition: bsDynaMsgs.h:390
byte_t m_servo_id
servo_id
Definition: bsDynaMsgs.h:72
byte_t m_val
val
Definition: bsDynaMsgs.h:175
byte_t m_alarms
alarms
Definition: bsDynaMsgs.h:216
byte_t m_alarms
alarms
Definition: bsDynaMsgs.h:131
INLINE_IN_H int BsDynaUnpackReqRead16(byte_t buf[], size_t uMsgLen, BsDynaReqRead16_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqRead16 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:540
ushort_t m_val
val
Definition: bsDynaMsgs.h:203
INLINE_IN_H int BsDynaUnpackReqWrite8(byte_t buf[], size_t uMsgLen, BsDynaReqWrite8_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqWrite8 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:626
void * m_pAlign
force alignment
Definition: bsDynaMsgs.h:236
INLINE_IN_H int BsDynaUnpackReqWrite16(byte_t buf[], size_t uMsgLen, BsDynaReqWrite16_T *pStruct, bool_t bTrace)
Unpack a BsDynaReqWrite16 ITV message in big-endian byte order from the input buffer.
Definition: bsDynaMsgs.h:712