UDP comms to ROV

design.h

Committer:
inky
Date:
2012-01-16
Revision:
2:48524892982c
Parent:
0:4a75d653c18c

File content as of revision 2:48524892982c:

/****************************************************************
Design file for the communication aspects of the ROV

Format of the command :
cmd, data_byte1, data_byte2, ...... , data_byteN

There is a maximum length for each data packet and I will assume,
initially, that each data packet is the same length, makes things
easier :)

Each end will need a TCP socket server, so the data can be sent
randomly, as and when needed

class RovComms :
   void Transmit(char *buf);
   
   int Rx(char *buf);
   
   int Init(int speed);
   
   void SetCallback( void *fn);

*****************************************************************/