debugger: work on trk

This commit is contained in:
hjk
2009-09-03 17:35:40 +02:00
parent 9b4055122c
commit b208e15aef
5 changed files with 563 additions and 362 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -111,7 +111,7 @@ public:
explicit TrkWriteQueueDevice(QObject *parent = 0);
virtual ~TrkWriteQueueDevice();
// Construct as 'TrkWriteQueueDevice::Callback(instance, &Klass::method);'
// Construct as 'TrkWriteQueueDevice::Callback(instance, &Class::method);'
typedef TrkFunctor1<const TrkResult &> Callback;
// Enqueue a message with a notification callback.
+1
View File
@@ -492,6 +492,7 @@ void TrkDevice::tryTrkRead()
while (extractResult(&d->trkReadBuffer, d->serialFrame, &r, &rawData)) {
//if (verbose())
// logMessage("Read TrkResult " + r.data.toHex());
qDebug() << "RECEIVE DATA: " << r.data.toHex();
emit messageReceived(r);
if (!rawData.isEmpty())
emit rawDataReceived(rawData);
+3
View File
@@ -32,6 +32,9 @@
#include <QtGlobal>
// FIXME: rename into something less TRK-specific
namespace trk {
namespace Internal {
/* Helper class for the 1-argument functor:
+1
View File
@@ -72,6 +72,7 @@ enum Command {
QByteArray decode7d(const QByteArray &ba);
QByteArray encode7d(const QByteArray &ba);
inline byte extractByte(const char *data) { return *data; }
ushort extractShort(const char *data);
uint extractInt(const char *data);