Library to control Dodge LX (83.3k) CAN devices
Dependencies: DodgeRadioLib EthernetWrapperLib OBDIILib mbed
EthernetWrapperLib/Eth.h
- Committer:
- rtgree01
- Date:
- 2012-01-09
- Revision:
- 3:2ce0da6b91dc
- Parent:
- 2:e8b13ea2881b
- Child:
- 5:46f139e53b15
File content as of revision 3:2ce0da6b91dc:
#ifndef ETH_H #define ETH_H #include "EthernetNetIf.h" #include "UDPSocket.h" class Eth { public: Eth(); ~Eth() {}; void Operate(void); private: EthernetNetIf *eth; Ticker checkNetTicker; }; class SocketReceiver { public: virtual void ReceivedData(int status, int size, char *data) = 0; }; class UDPSock { public: UDPSock(Host *l, int buff, SocketReceiver *sr); ~UDPSock() {}; void SendTo(Host *remote, int size, char *data); private: Host *local; Host *remote; UDPSocket udp; int bufferSize; char *buffer; SocketReceiver *receiver; void onUDPSocketEvent(UDPSocketEvent e); }; #endif