source: trunk/MagicSoft/Cosy/candrv/ethernet.h@ 8856

Last change on this file since 8856 was 8856, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 783 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
12class Ethernet : public MTcpIpI, public Interface
13{
14private:
15 TString fTxAddress;
16 Int_t fTxPort;
17
18 // Send interface based on MTcpIpI
19 void ReadSocket(TSocket &rx);
20
21 // Start/stop communication inherited from Interface
22 void Start() { RunThread(); }
23 void Stop() { CancelThread(); }
24
25public:
26 Ethernet(const char *addr, const int tx, const int rx, CanOpen *receiver);
27 virtual ~Ethernet();
28
29 // Transmit interface inherited from Interface
30 void SendCanFrame(WORD_t cobid, BYTE_t m[8], BYTE_t rtr=0);
31
32 ClassDef(Ethernet, 0) // hardware interface to the vmodican can module (Janz)
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.