SHARE
TWEET

Ethernet.h

a guest Oct 21st, 2011 50 Never
  1. #ifndef ethernet_h
  2. #define ethernet_h
  3.  
  4. #include <inttypes.h>
  5. //#include "w5100.h"
  6. #include "Client.h"
  7. #include "Server.h"
  8.  
  9. #define MAX_SOCK_NUM 4
  10.  
  11. class EthernetClass {
  12. private:
  13. public:
  14.   static uint8_t _state[MAX_SOCK_NUM];
  15.   static uint16_t _server_port[MAX_SOCK_NUM];
  16.   void begin(uint8_t *, uint8_t *);
  17.   void begin(uint8_t *, uint8_t *, uint8_t *);
  18.   void begin(uint8_t *, uint8_t *, uint8_t *, uint8_t *);
  19.   friend class Client;
  20.   friend class Server;
  21. };
  22.  
  23. extern EthernetClass Ethernet;
  24.  
  25. #endif
  26.  
  27.  
RAW Paste Data
Top