#include <CDxlPacket.hpp>
Public Member Functions | |
void | addCommand (const int ID, BYTE *data, int dataLength) |
CDxlSyncWritePacket () | |
CDxlSyncWritePacket (const BYTE instruction) | |
void | configurePacket (const int numDynamixels, const BYTE startRegister, const int numParamsPerDynamixel) |
int | getStartingAddress () |
void | reset () |
Protected Member Functions | |
void | adjustLengthSyncWrite (const int numParamsPerDynamixel, const int numDynamixels) |
Protected Attributes | |
int | mDxlPointer |
int | mNumParamsPerDxl |
int | mStartingAddress |
Definition at line 142 of file CDxlPacket.hpp.
CDxlSyncWritePacket::CDxlSyncWritePacket | ( | ) | [inline] |
Definition at line 158 of file CDxlPacket.hpp.
CDxlSyncWritePacket::CDxlSyncWritePacket | ( | const BYTE | instruction | ) | [inline] |
Definition at line 168 of file CDxlPacket.hpp.
void CDxlSyncWritePacket::addCommand | ( | const int | ID, |
BYTE * | data, | ||
int | dataLength | ||
) | [inline] |
addCommand adds a command to a prepared packet for a specific servo
Definition at line 207 of file CDxlPacket.hpp.
void CDxlSyncWritePacket::adjustLengthSyncWrite | ( | const int | numParamsPerDynamixel, |
const int | numDynamixels | ||
) | [inline, protected] |
Definition at line 150 of file CDxlPacket.hpp.
void CDxlSyncWritePacket::configurePacket | ( | const int | numDynamixels, |
const BYTE | startRegister, | ||
const int | numParamsPerDynamixel | ||
) | [inline] |
configurePacket makes an empty group packet that is of a specific command type i.e. it has a single address location with different parameters for each servo To add the individual data for each servo call the function addCommand(...) afterwards
Definition at line 182 of file CDxlPacket.hpp.
int CDxlSyncWritePacket::getStartingAddress | ( | ) | [inline] |
This function returns the address that is to be handled by the group packet In this way you can check if the group packet is of the correct type
Definition at line 230 of file CDxlPacket.hpp.
void CDxlSyncWritePacket::reset | ( | ) | [inline] |
resets the group packet.
Reimplemented from CDxlPacket.
Definition at line 218 of file CDxlPacket.hpp.
int CDxlSyncWritePacket::mDxlPointer [protected] |
Definition at line 146 of file CDxlPacket.hpp.
int CDxlSyncWritePacket::mNumParamsPerDxl [protected] |
Definition at line 147 of file CDxlPacket.hpp.
int CDxlSyncWritePacket::mStartingAddress [protected] |
Definition at line 145 of file CDxlPacket.hpp.