Abstract base class for protocol definiton. More...
#include <cplBase.h>
Public Member Functions | |
virtual void | comm (const byte *pack, byte *buf, byte *size)=0 |
Base communication function. More... | |
virtual void | getMasterFirmware (short *fw, short *rev)=0 |
Get the master firmware of the robot we are communicating with. More... | |
virtual bool | init (CCdlBase *_device, byte _kataddr=24)=0 |
Basic initializing function. More... | |
virtual | ~CCplBase () |
destructor More... | |
Protected Attributes | |
CCdlBase * | device |
communication device More... | |
short | mMasterRevision |
master firmware revision More... | |
short | mMasterVersion |
master version of robot we are communicating with More... | |
Abstract base class for protocol definiton.
The robot can be controled by using different kind of protocols; this class has been introduced as an abstract base class to manage them gether; every protocol the robot should use in futur shoud be derived from this class.
|
inlinevirtual |
Base communication function.
The children of this class should write their main double way communication in this function.
Implemented in CCplSerialCRC.
|
pure virtual |
Get the master firmware of the robot we are communicating with.
Get master firmware read at initialization time.
Implemented in CCplSerialCRC.
Basic initializing function.
The children of this class should write their initializing part in that function.
Implemented in CCplSerialCRC.
|
protected |
|
protected |