Public Member Functions | Protected Member Functions | Protected Attributes
CDxlSyncWritePacket Class Reference

#include <CDxlPacket.hpp>

Inheritance diagram for CDxlSyncWritePacket:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 142 of file CDxlPacket.hpp.


Constructor & Destructor Documentation

Definition at line 158 of file CDxlPacket.hpp.

CDxlSyncWritePacket::CDxlSyncWritePacket ( const BYTE  instruction) [inline]

Definition at line 168 of file CDxlPacket.hpp.


Member Function Documentation

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.

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.


Member Data Documentation

Definition at line 146 of file CDxlPacket.hpp.

Definition at line 147 of file CDxlPacket.hpp.

Definition at line 145 of file CDxlPacket.hpp.


The documentation for this class was generated from the following file:


threemxl
Author(s):
autogenerated on Thu Jun 6 2019 21:10:52