Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Static Public Member Functions | Static Protected Member Functions
EthInterface Class Reference

#include <EthInterface.h>

Inheritance diagram for EthInterface:
NetworkInterface DNS EthernetInterface NanostackEthernetInterface

Public Member Functions

virtual EthInterfaceethInterface ()
 
- Public Member Functions inherited from NetworkInterface
virtual const char * get_mac_address ()
 
virtual const char * get_ip_address ()
 
virtual const char * get_netmask ()
 
virtual const char * get_gateway ()
 
virtual nsapi_error_t set_network (const char *ip_address, const char *netmask, const char *gateway)
 
virtual nsapi_error_t set_dhcp (bool dhcp)
 
virtual nsapi_error_t connect ()=0
 
virtual nsapi_error_t disconnect ()=0
 
virtual nsapi_error_t gethostbyname (const char *host, SocketAddress *address, nsapi_version_t version=NSAPI_UNSPEC)
 
virtual nsapi_value_or_error_t gethostbyname_async (const char *host, hostbyname_cb_t callback, nsapi_version_t version=NSAPI_UNSPEC)
 
virtual nsapi_error_t gethostbyname_async_cancel (int id)
 
virtual nsapi_error_t add_dns_server (const SocketAddress &address)
 
virtual void attach (mbed::Callback< void(nsapi_event_t, intptr_t)> status_cb)
 
virtual nsapi_connection_status_t get_connection_status () const
 
virtual nsapi_error_t set_blocking (bool blocking)
 
virtual WiFiInterfacewifiInterface ()
 
virtual MeshInterfacemeshInterface ()
 
virtual CellularBasecellularBase ()
 
virtual EMACInterfaceemacInterface ()
 

Static Public Member Functions

static EthInterfaceget_default_instance ()
 
- Static Public Member Functions inherited from NetworkInterface
static NetworkInterfaceget_default_instance ()
 

Static Protected Member Functions

static EthInterfaceget_target_default_instance ()
 
- Static Protected Member Functions inherited from NetworkInterface
static NetworkInterfaceget_target_default_instance ()
 

Additional Inherited Members

- Public Types inherited from NetworkInterface
typedef mbed::Callback< void(nsapi_error_t result, SocketAddress *address)> hostbyname_cb_t
 
- Public Types inherited from DNS
typedef mbed::Callback< void(nsapi_error_t result, SocketAddress *address)> hostbyname_cb_t
 
- Protected Member Functions inherited from NetworkInterface
virtual NetworkStackget_stack ()=0
 

Detailed Description

EthInterface class

Common interface that is shared between ethernet hardware.

Member Function Documentation

virtual EthInterface* EthInterface::ethInterface ( )
inlinevirtual

Dynamic downcast to an EthInterface

Reimplemented from NetworkInterface.

MBED_WEAK EthInterface * EthInterface::get_default_instance ( )
static

Get the default Ethernet interface.

This is provided as a weak method so applications can override. Default behaviour is to get the target's default interface, if any.

Returns
pointer to interface, if any
MBED_WEAK EthInterface * EthInterface::get_target_default_instance ( )
staticprotected

Get the target's default Ethernet interface.

This is provided as a weak method so targets can override. The default implementation will invoke EthernetInterface with the default EMAC and default network stack, if DEVICE_EMAC is set.

Returns
pointer to interface, if any

The documentation for this class was generated from the following files:
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.