W5200(WIZ820io) network interface

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WIZ820ioNetIf.h Source File

WIZ820ioNetIf.h

Go to the documentation of this file.
00001 // WIZ820ioNetIf.h 2012/4/19
00002 
00003 /** \file
00004 WIZ820io network interface header file
00005 */
00006 #ifndef WIZ820IO_NETIF_H
00007 #define WIZ820IO_NETIF_H
00008 #include "W5200NetIf.h"
00009 
00010 ///WIZ820io network interface
00011 class WIZ820ioNetIf : public W5200NetIf {
00012 public:
00013     void spi(PinName mosi,PinName miso, PinName sclk);
00014     void cs(PinName _cs);
00015     void reset(PinName _reset);
00016     ///Brings the interface up
00017     /**
00018     Uses DHCP if necessary
00019     @param timeout_ms : You can set the timeout parameter in milliseconds, if not it defaults to 15s
00020     @return : 0 on success or -1 on timeout
00021     */    
00022     int setup(int timeout_ms = 15000);
00023 };
00024 #endif //WIZ820IO_NETIF_H