Norimasa Okamoto / WIZ820ioNetIf
Embed: (wiki syntax)

« Back to documentation index

WIZ820ioNetIf Class Reference

WIZ820ioNetIf Class Reference

WIZ820io network interface. More...

#include <WIZ820ioNetIf.h>

Inherits MyNetIf.

Public Member Functions

 WIZ820ioNetIf (PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset)
 Create a WIZ820io ethernet interface.
int setup (int timeout_ms=15000)
 Brings the interface up.
IpAddr getIp () const
 Returns the IP of the interface once it's connected.

Detailed Description

WIZ820io network interface.

Definition at line 20 of file WIZ820ioNetIf.h.


Constructor & Destructor Documentation

WIZ820ioNetIf ( PinName  mosi,
PinName  miso,
PinName  sclk,
PinName  cs,
PinName  reset 
)

Create a WIZ820io ethernet interface.

Parameters:
mosiSPI mosi pin connected to WIZ820io
misoSPI miso pin conencted to WIZ820io
sclkSPI sclk pin connected to WIZ820io
csDigitalOut pin used as WIZ820io select
resetDigitalOut pin WIZ820io hardware reset

Definition at line 10 of file WIZ820ioNetIf.cpp.


Member Function Documentation

IpAddr getIp (  ) const [inherited]

Returns the IP of the interface once it's connected.

Definition at line 40 of file netif.cpp.

int setup ( int  timeout_ms = 15000 )

Brings the interface up.

Uses DHCP if necessary

Parameters:
timeout_ms: You can set the timeout parameter in milliseconds, if not it defaults to 15s
Returns:
: 0 on success or -1 on timeout

Definition at line 66 of file WIZ820ioNetIf.cpp.