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" 46 int8_t get_interface_id()
const 50 int8_t get_driver_id()
const 70 nsapi_connection_status_t _connect_status;
71 nsapi_connection_status_t _previous_connection_status;
137 return _interface->get_interface_id();
151 char ip_addr_str[40];
152 char mac_addr_str[24];
Radio PHY driver class for Nanostack.
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.
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_ip_address(char *buf, nsapi_size_t buflen)
Copies IP address of the network interface to user supplied buffer.
virtual char * get_mac_address(char *buf, nsapi_size_t buflen)
Return MAC address of the network interface.
Common interface that is shared between network devices.
virtual char * get_netmask(char *buf, nsapi_size_t buflen)
Copies netmask of the network interface to user supplied buffer.
PHY driver class for Nanostack.
virtual char * get_gateway(char *buf, nsapi_size_t buflen)
Copies gateway address of the network interface to user supplied buffer.
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.
void network_handler(mesh_connection_status_t status)
Callback from C-layer.
Callback class based on template specialization.
virtual nsapi_connection_status_t get_connection_status() const
Get the connection status.
virtual void get_mac_address(uint8_t *mac)=0
Read the mac address of this physical interface.
int8_t get_interface_id() const
Get the interface ID /return Interface identifier.