UDP comms to ROV

Committer:
inky
Date:
Mon Jan 16 17:32:54 2012 +0000
Revision:
2:48524892982c
Parent:
0:4a75d653c18c

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
inky 0:4a75d653c18c 1 /****************************************************************
inky 0:4a75d653c18c 2 Design file for the communication aspects of the ROV
inky 0:4a75d653c18c 3
inky 0:4a75d653c18c 4 Format of the command :
inky 0:4a75d653c18c 5 cmd, data_byte1, data_byte2, ...... , data_byteN
inky 0:4a75d653c18c 6
inky 0:4a75d653c18c 7 There is a maximum length for each data packet and I will assume,
inky 0:4a75d653c18c 8 initially, that each data packet is the same length, makes things
inky 0:4a75d653c18c 9 easier :)
inky 0:4a75d653c18c 10
inky 0:4a75d653c18c 11 Each end will need a TCP socket server, so the data can be sent
inky 0:4a75d653c18c 12 randomly, as and when needed
inky 0:4a75d653c18c 13
inky 0:4a75d653c18c 14 class RovComms :
inky 0:4a75d653c18c 15 void Transmit(char *buf);
inky 0:4a75d653c18c 16
inky 0:4a75d653c18c 17 int Rx(char *buf);
inky 0:4a75d653c18c 18
inky 0:4a75d653c18c 19 int Init(int speed);
inky 0:4a75d653c18c 20
inky 0:4a75d653c18c 21 void SetCallback( void *fn);
inky 0:4a75d653c18c 22
inky 0:4a75d653c18c 23 *****************************************************************/