00001 #include "CDxlPacketHandler.h" 00002 #include <threemxl/platform/hardware/serial/LxSerial.h> 00003 00004 class CDxlSerialPacketHandler : public CDxlPacketHandler 00005 { 00006 protected: 00007 CLog2 mLog; 00008 LxSerial *&mSerialPort; 00009 int mLastError; 00010 00011 public: 00012 CDxlSerialPacketHandler(LxSerial *&serialPort); 00013 int init(); 00014 int sendPacket(CDxlPacket *packet, bool replyExpected); 00015 int receivePacketWait(CDxlStatusPacket *packet, int seconds, int microseconds); 00016 int getLastError(); 00017 };