/* W5100 device configuration Author: Philip Lindsay License: Copyright 2007-2008 // LGPL */ #ifndef _W5100_DEVICE_H_ #define _W5100_DEVICE_H_ // From original driver #include "types.h" #include "w5100.h" #include "socket.h" // Required for use in Arduino environment #include class W5100Device { public: W5100Device(int resetPin); void setIp(byte b0, byte b1, byte b2, byte b3); void setMask(byte b0, byte b1, byte b2, byte b3); void setGateway(byte b0, byte b1, byte b2, byte b3); void setMac(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5); void _init(void); private: byte * _packBuffer(byte b0, byte b1, byte b2, byte b3); byte * _packBuffer(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5); int _resetPin; byte _scratchBuffer[6]; // TODO: Can we make this static? }; #endif