|
KatanaNativeInterface
$VERSION$
|
Implement the Serial-Zero protocol. More...
#include <cplSerial.h>


Public Member Functions | |
| virtual bool | init (CCdlBase *_device, byte _kataddr=24) |
| Initializing function. More... | |
| virtual void | comm (const byte *pack, byte *buf, byte *size) |
| Communication function. More... | |
| virtual void | getMasterFirmware (short *fw, short *rev) |
| Get the master firmware of the robot we are communicating with. More... | |
Public Member Functions inherited from CCplBase | |
| virtual | ~CCplBase () |
| destructor More... | |
Protected Member Functions | |
| virtual bool | load_tbl () |
| Loads the command table from the robot's firmware. More... | |
| virtual void | defineProtocol (byte _kataddr) |
| Defines the protocol's attributes. More... | |
| virtual void | send (byte *send_buf, byte write_sz, short retries=3) |
| virtual void | recv (byte *read_buf, byte read_sz, byte *size) |
Additional Inherited Members | |
Protected Attributes inherited from CCplSerial | |
| 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 | |
| CCdlBase * | device |
| communication device More... | |
| short | mMasterVersion |
| master version of robot we are communicating with More... | |
| short | mMasterRevision |
| master firmware revision More... | |
Implement the Serial-Zero protocol.
Initializing function
Init the protocols basic attributes. / virtual bool init(CCdlBase* _device, byte _kataddr = 24);
/*! Communication function
Sends a communications packet and receives one from the robot.
‍/
virtual TRetCOMM comm(const byte* _pack, byte* _buf, byte* _size); };
-------------------------------------------------------------------------------------------------------------—//
/*! Implement the Serial-CRC protocol
Definition at line 137 of file cplSerial.h.
Communication function.
Sends a communications packet and receives one from the robot.
Implements CCplBase.
|
protectedvirtual |
Defines the protocol's attributes.
Implements CCplSerial.
|
virtual |
Get the master firmware of the robot we are communicating with.
Get master firmware read at initialization time.
Implements CCplBase.
|
protectedvirtual |
Loads the command table from the robot's firmware.
Implements CCplSerial.
|
protectedvirtual |
1.8.17