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