@@ -5,12 +5,13 | |||
|
5 | 5 | ----------------------------------------------------------------------------*/ |
|
6 | 6 | #include "spwplugin.h" |
|
7 | 7 | #include "stardundeespw_usb.h" |
|
8 | ||
|
8 | #include <socexplorerproxy.h> | |
|
9 | 9 | |
|
10 | 10 | spwplugin::spwplugin(QWidget *parent):socexplorerplugin(parent,true) |
|
11 | 11 | { |
|
12 | 12 | Q_UNUSED(parent) |
|
13 | 13 | this->bridge = new stardundeeSPW_USB(this); |
|
14 | this->scanDone = false; | |
|
14 | 15 | if(this->bridge->connectBridge()) |
|
15 | 16 | { |
|
16 | 17 | this->Connected = true; |
@@ -35,6 +36,8 unsigned int spwplugin::Read(unsigned in | |||
|
35 | 36 | return 0; |
|
36 | 37 | } |
|
37 | 38 | |
|
39 | ||
|
40 | ||
|
38 | 41 | unsigned int spwplugin::Write(unsigned int *Value,unsigned int count, unsigned int address) |
|
39 | 42 | { |
|
40 | 43 | if(Connected) |
@@ -34,10 +34,12 public: | |||
|
34 | 34 | public slots: |
|
35 | 35 | unsigned int Write(unsigned int *Value,unsigned int count, unsigned int address=0); |
|
36 | 36 | unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0); |
|
37 | ||
|
37 | 38 | signals: |
|
38 | 39 | |
|
39 | 40 | private: |
|
40 | 41 | abstractSpwBridge* bridge; |
|
42 | bool scanDone; | |
|
41 | 43 | |
|
42 | 44 | }; |
|
43 | 45 |
General Comments 0
You need to be logged in to leave comments.
Login now