17 #ifndef WISUNINTERFACE_H 18 #define WISUNINTERFACE_H 20 #include "MeshInterfaceNanostack.h" 69 mesh_error_t set_network_name(
char *network_name);
80 mesh_error_t get_network_name(
char *network_name);
91 mesh_error_t validate_network_name(
char *network_name);
108 mesh_error_t set_network_regulatory_domain(uint8_t regulatory_domain = 0xff, uint8_t operating_class = 0xff, uint8_t operating_mode = 0xff);
121 mesh_error_t get_network_regulatory_domain(uint8_t *regulatory_domain, uint8_t *operating_class, uint8_t *operating_mode);
135 mesh_error_t validate_network_regulatory_domain(uint8_t regulatory_domain, uint8_t operating_class, uint8_t operating_mode);
161 mesh_error_t set_network_size(uint8_t network_size);
172 mesh_error_t get_network_size(uint8_t *network_size);
184 mesh_error_t validate_network_size(uint8_t network_size);
196 mesh_error_t set_channel_mask(uint32_t channel_mask[8]);
207 mesh_error_t get_channel_mask(uint32_t *channel_mask);
219 mesh_error_t validate_channel_mask(uint32_t channel_mask[8]);
236 mesh_error_t set_unicast_channel_function(mesh_channel_function_t channel_function, uint16_t fixed_channel = 0xffff, uint8_t dwell_interval = 0x00);
249 mesh_error_t get_unicast_channel_function(mesh_channel_function_t *channel_function, uint16_t *fixed_channel, uint8_t *dwell_interval);
263 mesh_error_t validate_unicast_channel_function(mesh_channel_function_t channel_function, uint16_t fixed_channel, uint8_t dwell_interval);
281 mesh_error_t set_broadcast_channel_function(mesh_channel_function_t channel_function, uint16_t fixed_channel = 0xffff, uint8_t dwell_interval = 0x00, uint32_t broadcast_interval = 0x00);
295 mesh_error_t get_broadcast_channel_function(mesh_channel_function_t *channel_function, uint16_t *fixed_channel, uint8_t *dwell_interval, uint32_t *broadcast_interval);
310 mesh_error_t validate_broadcast_channel_function(mesh_channel_function_t channel_function, uint16_t fixed_channel, uint8_t dwell_interval, uint32_t broadcast_interval);
325 mesh_error_t set_timing_parameters(uint16_t disc_trickle_imin = 0x00, uint16_t disc_trickle_imax = 0x00, uint8_t disc_trickle_k = 0x00, uint16_t pan_timeout = 0x00);
339 mesh_error_t get_timing_parameters(uint16_t *disc_trickle_imin, uint16_t *disc_trickle_imax, uint8_t *disc_trickle_k, uint16_t *pan_timeout);
354 mesh_error_t validate_timing_parameters(uint16_t disc_trickle_imin, uint16_t disc_trickle_imax, uint8_t disc_trickle_k, uint16_t pan_timeout);
373 mesh_error_t set_own_certificate(uint8_t *cert, uint16_t cert_len, uint8_t *cert_key = NULL, uint16_t cert_key_len = 0);
383 mesh_error_t remove_own_certificates(
void);
399 mesh_error_t set_trusted_certificate(uint8_t *cert, uint16_t cert_len);
409 mesh_error_t remove_trusted_certificates(
void);
417 bool getRouterIpAddress(
char *address, int8_t len);
428 mesh_error_t enable_statistics(
void);
466 Nanostack::WisunInterface *get_interface()
const;
Radio PHY driver class for Nanostack.
Wi-SUN mesh network interface class.
uint8_t version
RPL version number.
signed int nsapi_error_t
Type used to represent error codes.
Mesh physical layer statistics.
uint8_t instance_id
Router instance identifier.
uint8_t ipv6_iid[8]
IID of router.
WisunInterface()
Create an uninitialized WisunInterface.
WisunInterface(NanostackRfPhy *phy)
Create an initialized WisunInterface.
uint8_t rpl_dodag_id[16]
Router dodag id.
Struct ws_rpl_info Wi-SUN router RPL information.
uint8_t ipv6_prefix[8]
Address prefix given to devices in network set to 0 if not available.