W5200(WIZ820io) network interface
WIZ820ioNetIf.h@2:a8df39b4f3aa, 2012-04-19 (annotated)
- Committer:
- va009039
- Date:
- Thu Apr 19 11:14:43 2012 +0000
- Revision:
- 2:a8df39b4f3aa
- Parent:
- 1:803123933c5a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 2:a8df39b4f3aa | 1 | // WIZ820ioNetIf.h 2012/4/19 |
va009039 | 1:803123933c5a | 2 | |
va009039 | 2:a8df39b4f3aa | 3 | /** \file |
va009039 | 2:a8df39b4f3aa | 4 | WIZ820io network interface header file |
va009039 | 1:803123933c5a | 5 | */ |
va009039 | 0:61831b843b44 | 6 | #ifndef WIZ820IO_NETIF_H |
va009039 | 0:61831b843b44 | 7 | #define WIZ820IO_NETIF_H |
va009039 | 2:a8df39b4f3aa | 8 | #include "W5200NetIf.h" |
va009039 | 2:a8df39b4f3aa | 9 | |
va009039 | 2:a8df39b4f3aa | 10 | ///WIZ820io network interface |
va009039 | 2:a8df39b4f3aa | 11 | class WIZ820ioNetIf : public W5200NetIf { |
va009039 | 0:61831b843b44 | 12 | public: |
va009039 | 1:803123933c5a | 13 | void spi(PinName mosi,PinName miso, PinName sclk); |
va009039 | 1:803123933c5a | 14 | void cs(PinName _cs); |
va009039 | 1:803123933c5a | 15 | void reset(PinName _reset); |
va009039 | 2:a8df39b4f3aa | 16 | ///Brings the interface up |
va009039 | 2:a8df39b4f3aa | 17 | /** |
va009039 | 2:a8df39b4f3aa | 18 | Uses DHCP if necessary |
va009039 | 2:a8df39b4f3aa | 19 | @param timeout_ms : You can set the timeout parameter in milliseconds, if not it defaults to 15s |
va009039 | 2:a8df39b4f3aa | 20 | @return : 0 on success or -1 on timeout |
va009039 | 2:a8df39b4f3aa | 21 | */ |
va009039 | 0:61831b843b44 | 22 | int setup(int timeout_ms = 15000); |
va009039 | 0:61831b843b44 | 23 | }; |
va009039 | 0:61831b843b44 | 24 | #endif //WIZ820IO_NETIF_H |