SyncWriteHeader< T > Struct Template Reference
Allows you to do a "synchronized write", where all recipients commit the value(s) at the same time, and do not send any response packets.
More...
#include <DynamixelProtocol.h>
Detailed Description
template<class T>
struct DynamixelProtocol::SyncWriteHeader< T >
Allows you to do a "synchronized write", where all recipients commit the value(s) at the same time, and do not send any response packets.
To do a synchronized write, first send a SyncWriteHeader indicating the type of write command being sent (T for example below) and the number of entries. Then send the corresponing entries themselves, followed by a checksum:
- unsigned char checksum = 0;
- write( os, SyncWriteHeader<T>(n), checksum );
- for(int i=0; i<n; ++i) { write( os, t[i], checksum ); }
- os.put(~checksum); // note bitwise-not!
Definition at line 105 of file DynamixelProtocol.h.
List of all members.
Constructor & Destructor Documentation
Member Data Documentation
The documentation for this struct was generated from the following file: