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

Last change on this file since 8855 was 8855, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 685 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 // Send interface based on MTcpIpI
16 void ReadSocket(TSocket &rx);
17
18 // Start/stop communication inherited from Interface
19 void Start() { RunThread(); }
20 void Stop() { CancelThread(); }
21
22public:
23 Ethernet(CanOpen *rx);
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.