Last change
on this file since 12592 was 10031, checked in by tbretz, 14 years ago |
Changed connection from SPS to a client-only connection.
|
File size:
752 bytes
|
Line | |
---|
1 | #ifndef COSY_Ethernet
|
---|
2 | #define COSY_Ethernet
|
---|
3 |
|
---|
4 | #ifndef COSY_Interface
|
---|
5 | #include "interface.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef COSY_MTcpIpIO
|
---|
9 | #include "MTcpIpIO.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class Ethernet : public MTcpIpOI, public Interface
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | // Send interface based on MTcpIpI
|
---|
16 | Bool_t ReadSocket(TSocket &rx);
|
---|
17 |
|
---|
18 | // Start/stop communication inherited from Interface
|
---|
19 | void Start() { if (!IsThreadRunning()) RunThread(); }
|
---|
20 | void Stop() { CancelThread(); }
|
---|
21 |
|
---|
22 | public:
|
---|
23 | Ethernet(const char *addr, const int tx, CanOpen *receiver);
|
---|
24 | virtual ~Ethernet();
|
---|
25 |
|
---|
26 | // Transmit interface inherited from Interface
|
---|
27 | void SendCanFrame(WORD_t cobid, BYTE_t m[8], BYTE_t rtr=0);
|
---|
28 |
|
---|
29 | // ClassDef(Ethernet, 0) // hardware interface to the vmodican can module (Janz)
|
---|
30 | };
|
---|
31 |
|
---|
32 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.