@@ -1,33 +1,38 | |||
|
1 | 1 | #include "gr_esb_bridge.h" |
|
2 | 2 | #include "gr_esb_ui.h" |
|
3 | 3 | |
|
4 | 4 | GR_ESB_bridge::GR_ESB_bridge(socexplorerplugin *parent) : |
|
5 | 5 | abstractSpwBridge(parent) |
|
6 | 6 | { |
|
7 | 7 | this->p_GUI = new GR_ESB_ui(); |
|
8 | this->soc = new QTcpSocket(this); | |
|
9 | } | |
|
10 | ||
|
11 | GR_ESB_bridge::~GR_ESB_bridge() | |
|
12 | { | |
|
8 | 13 | } |
|
9 | 14 | |
|
10 | 15 | bool GR_ESB_bridge::connectBridge() |
|
11 | 16 | { |
|
12 | 17 | |
|
13 | 18 | } |
|
14 | 19 | |
|
15 | 20 | bool GR_ESB_bridge::disconnectBridge() |
|
16 | 21 | { |
|
17 | 22 | |
|
18 | 23 | } |
|
19 | 24 | |
|
20 | 25 | unsigned int GR_ESB_bridge::Write(unsigned int *Value, unsigned int count, unsigned int address) |
|
21 | 26 | { |
|
22 | 27 | |
|
23 | 28 | } |
|
24 | 29 | |
|
25 | 30 | unsigned int GR_ESB_bridge::Read(unsigned int *Value, unsigned int count, unsigned int address) |
|
26 | 31 | { |
|
27 | 32 | |
|
28 | 33 | } |
|
29 | 34 | |
|
30 | 35 | int GR_ESB_bridge::pushRMAPPacket(char *packet, int size) |
|
31 | 36 | { |
|
32 | 37 | |
|
33 | 38 | } |
@@ -1,24 +1,27 | |||
|
1 | 1 | #ifndef GR_ESB_BRIDGE_H |
|
2 | 2 | #define GR_ESB_BRIDGE_H |
|
3 | 3 | #include "abstractspwbridge.h" |
|
4 | #include <QTcpSocket> | |
|
4 | 5 | |
|
5 | 6 | class GR_ESB_bridge : public abstractSpwBridge |
|
6 | 7 | { |
|
7 | 8 | Q_OBJECT |
|
8 | 9 | public: |
|
9 | 10 | explicit GR_ESB_bridge(socexplorerplugin *parent = 0); |
|
10 | ||
|
11 | ~GR_ESB_bridge(); | |
|
11 | 12 | signals: |
|
12 | 13 | |
|
13 | 14 | |
|
14 | 15 | public slots: |
|
15 | 16 | bool connectBridge(); |
|
16 | 17 | bool disconnectBridge(); |
|
17 | 18 | unsigned int Write(unsigned int *Value,unsigned int count, unsigned int address=0); |
|
18 | 19 | unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0); |
|
19 | 20 | int pushRMAPPacket(char* packet,int size); |
|
21 | void packetReceived(); | |
|
20 | 22 | |
|
23 | QTcpSocket* soc; | |
|
21 | 24 | |
|
22 | 25 | }; |
|
23 | 26 | |
|
24 | 27 | #endif // GR_ESB_BRIDGE_H |
General Comments 0
You need to be logged in to leave comments.
Login now