KatanaNativeInterface  $VERSION$
Protected Member Functions | Protected Attributes | List of all members
CCplSerial Class Referenceabstract

Base class of two different serial protocols. More...

#include <cplSerial.h>

Inheritance diagram for CCplSerial:
Inheritance graph
Collaboration diagram for CCplSerial:
Collaboration graph

Protected Member Functions

virtual bool load_tbl ()=0
 Loads the command table from the robot's firmware. More...
 
virtual void defineProtocol (byte _kataddr)=0
 Defines the protocol's attributes. More...
 

Protected Attributes

THeader hdr
 header More...
 
TPacket cmd [256]
 command table More...
 
byte send_buf [256]
 sending buffer More...
 
byte read_buf [256]
 receive buffer More...
 
- Protected Attributes inherited from CCplBase
CCdlBasedevice
 communication device More...
 
short mMasterVersion
 master version of robot we are communicating with More...
 
short mMasterRevision
 master firmware revision More...
 

Additional Inherited Members

- Public Member Functions inherited from CCplBase
virtual bool init (CCdlBase *_device, byte _kataddr=24)=0
 Basic initializing function. More...
 
virtual void comm (const byte *pack, byte *buf, byte *size)=0
 Base communication function. More...
 
virtual ~CCplBase ()
 destructor More...
 
virtual void getMasterFirmware (short *fw, short *rev)=0
 Get the master firmware of the robot we are communicating with. More...
 

Detailed Description

Base class of two different serial protocols.

Definition at line 92 of file cplSerial.h.

Member Function Documentation

virtual void CCplSerial::defineProtocol ( byte  _kataddr)
protectedpure virtual

Defines the protocol's attributes.

Implemented in CCplSerialCRC.

virtual bool CCplSerial::load_tbl ( )
protectedpure virtual

Loads the command table from the robot's firmware.

Implemented in CCplSerialCRC.

Member Data Documentation

TPacket CCplSerial::cmd[256]
protected

command table

Definition at line 96 of file cplSerial.h.

THeader CCplSerial::hdr
protected

header

Definition at line 95 of file cplSerial.h.

byte CCplSerial::read_buf[256]
protected

receive buffer

Definition at line 99 of file cplSerial.h.

byte CCplSerial::send_buf[256]
protected

sending buffer

Definition at line 98 of file cplSerial.h.


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