Commit 0fddc984 authored by Leander Schulten's avatar Leander Schulten
Browse files

The Driver Dummy

parent 90ca5e67
#ifndef DRIVER_DUMMY_H
#define DRIVER_DUMMY_H
#include "HardwareInterface.h"
#include <QDebug>
#include <iostream>
class DriverDummy : public AbstractHardwareInterface
{
unsigned char data[512];
public:
DriverDummy () {}
virtual bool init(){qDebug()<<"initDriver";}
virtual bool isFunctioning(){return true;}
protected:
virtual void setValuesDeviceDriver() {
qDebug()<<"set values";
setValues(data,512,time);
auto out = qDebug();
for (int var = 0; var < 20; ++var) {
out << (int)*(data+var);
}
}
};
#endif /*DRIVER_DUMMY_H*/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment