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 67 int8_t interface_id = -1;
68 int8_t _device_id = -1;
75 bool _blocking =
true;
143 nsapi_error_t set_file_system_root_path(
const char *root_path);
150 return _interface->get_interface_id();
165 char mac_addr_str[24] {};
167 bool _blocking =
true;
168 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.
char * get_mac_address(char *buf, nsapi_size_t buflen) final
Return MAC address of the network 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.
nsapi_connection_status_t get_connection_status() const final
Get the connection status.
Common interface that is shared between mesh hardware.
Prevents generation of copy constructor and copy assignment operator in derived classes.
Common interface that is shared between network devices.
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 attach(mbed::Callback< void(nsapi_event_t, intptr_t)> status_cb) final
Register callback for status reporting.
void network_handler(mesh_connection_status_t status)
Callback from C-layer.
virtual NanostackMACPhy * nanostack_mac_phy()
Return pointer to a NanostackMACPhy.
nsapi_error_t get_netmask(SocketAddress *address) final
nsapi_error_t get_gateway(SocketAddress *address) override
nsapi_error_t get_ip_address(SocketAddress *address) final
Get the local IP address.
Callback class based on template specialization.
int8_t get_interface_id() const
Get the interface ID.