Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
0fddc984
Commit
0fddc984
authored
Feb 20, 2018
by
Leander Schulten
Browse files
The Driver Dummy
parent
90ca5e67
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/DriverDummy.cpp
View file @
0fddc984
#include "DriverDummy.h"
test/DriverDummy.h
View file @
0fddc984
#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*/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment