Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of myOSC_test by
EthernetNetIf Class Reference
Ethernet network interface. More...
#include <EthernetNetIf.h>
Inherits LwipNetIf, and LwipNetIf.
Public Member Functions | |
EthernetNetIf () | |
Instantiates the Interface and register it against the stack, DHCP will be used. | |
EthernetNetIf (IpAddr ip, IpAddr netmask, IpAddr gateway, IpAddr dns) | |
Instantiates the Interface and register it against the stack, DHCP will not be used. | |
EthernetErr | setup (int timeout_ms=15000) |
Brings the interface up. | |
EthernetNetIf () | |
Instantiates the Interface and register it against the stack, DHCP will be used. | |
EthernetNetIf (IpAddr ip, IpAddr netmask, IpAddr gateway, IpAddr dns) | |
Instantiates the Interface and register it against the stack, DHCP will not be used. | |
EthernetErr | setup (int timeout_ms=15000) |
Brings the interface up. | |
IpAddr | getIp () const |
Returns the IP of the interface once it's connected. | |
IpAddr | getIp () const |
Returns the IP of the interface once it's connected. |
Detailed Description
Ethernet network interface.
This class provides Ethernet connectivity to the stack
Definition at line 49 of file LPC1768/if/eth/EthernetNetIf.h.
Constructor & Destructor Documentation
EthernetNetIf | ( | ) |
Instantiates the Interface and register it against the stack, DHCP will be used.
EthernetNetIf | ( | IpAddr | ip, |
IpAddr | netmask, | ||
IpAddr | gateway, | ||
IpAddr | dns | ||
) |
Instantiates the Interface and register it against the stack, DHCP will not be used.
IpAddr is a container class that can be constructed with either 4 bytes or no parameters for a null IP address.
EthernetNetIf | ( | ) |
Instantiates the Interface and register it against the stack, DHCP will be used.
EthernetNetIf | ( | IpAddr | ip, |
IpAddr | netmask, | ||
IpAddr | gateway, | ||
IpAddr | dns | ||
) |
Instantiates the Interface and register it against the stack, DHCP will not be used.
IpAddr is a container class that can be constructed with either 4 bytes or no parameters for a null IP address.
Member Function Documentation
IpAddr getIp | ( | ) | const [inherited] |
Returns the IP of the interface once it's connected.
IpAddr getIp | ( | ) | const [inherited] |
Returns the IP of the interface once it's connected.
EthernetErr 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:
- : ETH_OK on success or ETH_TIMEOUT on timeout
EthernetErr 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:
- : ETH_OK on success or ETH_TIMEOUT on timeout
Generated on Tue Jul 12 2022 22:05:57 by
