36 #include <libplayercore/playercore.h> 39 #define PACKET_LEN 256 41 enum receive_result_e {
51 unsigned char packet[PACKET_LEN];
58 int Build(
unsigned char *data,
unsigned char datasize );
60 int Receive(
int fd, uint16_t wait = 30 );
65 if ( size != p.size)
return(
true);
67 if ( memcmp( packet, p.packet, size ) != 0 )
return (
true);
uint16_t CalcChkSum()
CalcChkSum.
Definition: mbase/packet.cc:108
bool Check()
Check.
Definition: mbase/packet.cc:83
int Build(unsigned char *data, unsigned char datasize)
Build.
Definition: mbase/packet.cc:319
int Receive(int fd, uint16_t wait=30)
Receive.
Definition: mbase/packet.cc:130
void Print()
Copyright (C) 2010 Ana Teresa Hernández Malagón Movirobotics Copyright (C) 2006 Videre Design Copyrig...
Definition: mbase/packet.cc:49
int Send(int fd)
Send.
Definition: mbase/packet.cc:348
Definition: mbase/packet.h:48
void PrintHex()
PrintHex.
Definition: mbase/packet.cc:66