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" 49 int8_t get_interface_id()
const 53 int8_t get_driver_id()
const 73 nsapi_connection_status_t _connect_status;
74 nsapi_connection_status_t _previous_connection_status;
143 virtual nsapi_error_t set_file_system_root_path(
const char *root_path);
150 return _interface->get_interface_id();
164 char ip_addr_str[40];
165 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.
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_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.
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.