25 lines
704 B
C++
25 lines
704 B
C++
#include "232NetworkCommIF.h"
|
|
|
|
C232NetworkCommIF::C232NetworkCommIF(CAbstractDevice *DeviceHandle)
|
|
{
|
|
mDeviceHandle = DeviceHandle;
|
|
// mNetworkProtocol = new CNetworkProtocol(this);
|
|
}
|
|
C232NetworkCommIF::~C232NetworkCommIF()
|
|
{
|
|
}
|
|
|
|
int C232NetworkCommIF::NewFrameReceived(QByteArray Frame)
|
|
{
|
|
//FWD to device...
|
|
//Nothing to do with the data here, up it goes to the device instance!
|
|
mDeviceHandle->NewDeviceFrameReceived(Frame);
|
|
return 1;
|
|
}
|
|
|
|
int C232NetworkCommIF::SendNetworkMessage(unsigned char MessageID, unsigned char Flags, unsigned char *Data, int Size)
|
|
{
|
|
GetTxPacket(MessageID,Flags,Data,Size,mDeviceHandle->GetDeviceAddress(),mDeviceHandle->GetDeviceID());
|
|
return 1;
|
|
}
|