17 #ifndef MESHINTERFACENANOSTACK_H 18 #define MESHINTERFACENANOSTACK_H 20 #include "Semaphore.h" 21 #include "MeshInterface.h" 22 #include "NanostackRfPhy.h" 23 #include "Nanostack.h" 24 #include "mesh_interface_types.h" 55 int8_t get_interface_id()
const 59 int8_t get_driver_id()
const 79 nsapi_connection_status_t _connect_status;
80 nsapi_connection_status_t _previous_connection_status;
152 virtual nsapi_error_t set_file_system_root_path(
const char *root_path);
159 return _interface->get_interface_id();
174 char mac_addr_str[24];
177 bool _configured =
false;
Radio PHY driver class for Nanostack.
virtual char * get_interface_name(char *buf)
Returns interface name.
The Semaphore class is used to manage and protect access to a set of shared resources.
Representation of a stack's view of an interface.
virtual void get_mac_address(uint8_t *mac)=0
Read the mac address of this physical interface.
signed int nsapi_error_t
Type used to represent error codes.
virtual void attach(mbed::Callback< void(nsapi_event_t, intptr_t)> status_cb)
Register callback for status reporting.
Common interface that is shared between mesh hardware.
Prevents generation of copy constructor and copy assignment operator in derived classes.
virtual char * get_mac_address(char *buf, nsapi_size_t buflen)
Return MAC address of the network interface.
virtual nsapi_error_t get_netmask(SocketAddress *address)
Common interface that is shared between network devices.
virtual nsapi_error_t get_ip_address(SocketAddress *address)
Get the local IP address.
virtual nsapi_error_t get_gateway(SocketAddress *address)
PHY driver class for Nanostack.
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.
MAC PHY driver class for Nanostack.
void network_handler(mesh_connection_status_t status)
Callback from C-layer.
virtual NanostackMACPhy * nanostack_mac_phy()
Return pointer to a NanostackMACPhy.
Callback class based on template specialization.
virtual nsapi_connection_status_t get_connection_status() const
Get the connection status.
int8_t get_interface_id() const
Get the interface ID.