You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
749 B
26 lines
749 B
#ifndef __TRANSPORT_BUS_HEADERS__
|
|
#define __TRANSPORT_BUS_HEADERS__
|
|
|
|
#include "../../components/base/basicDualThread.h"
|
|
#include "../../components/base/basicTransport.h"
|
|
|
|
#define MAXIMAL_BUS_PACKET_LENGTH 2048
|
|
|
|
class transportBus: public basicTransport, public basicDualThread {
|
|
protected:
|
|
U8 *m_pInputBuffer;
|
|
int m_nInputBufferSize;
|
|
U8 *m_pOutputBuffer;
|
|
int m_nOutputBufferSize;
|
|
virtual int sendBlock(unsigned char *Data, int DataSize){ return 0;};
|
|
virtual int recptBlock(unsigned char *Buffer, int *BufferLength){ return 0;};
|
|
public:
|
|
transportBus();
|
|
~transportBus();
|
|
bool sendData( unsigned char *Data, int DataSize );
|
|
bool getData( unsigned char *Data, int DataSize );
|
|
};
|
|
|
|
|
|
#endif
|
|
|