17#ifndef NANOSTACKETHERNETINTERFACE_H
18#define NANOSTACKETHERNETINTERFACE_H
20#include "EthInterface.h"
21#include "MeshInterfaceNanostack.h"
22#include "NanostackEthernetPhy.h"
27 const char *netmask,
const char *gw,
28 nsapi_ip_stack_t stack = DEFAULT_STACK,
29 bool blocking =
true)
override;
31 void get_mac_address(uint8_t *buf)
const override;
Common interface between Ethernet hardware.
nsapi_error_t bringdown() override
Disconnect interface from the network.
nsapi_error_t bringup(bool dhcp, const char *ip, const char *netmask, const char *gw, nsapi_ip_stack_t stack=DEFAULT_STACK, bool blocking=true) override
Connect the interface to the network.
char * get_mac_address(char *buf, nsapi_size_t buflen) override
Return MAC address of the network interface.
char * get_interface_name(char *buf) override
Returns interface name.
Ethernet interface for Nanostack.
Ethernet PHY driver class for Nanostack.
Prevents generation of copy constructor and copy assignment operator in derived classes.
signed int nsapi_error_t
Type used to represent error codes.
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.