17 #ifndef WISUNINTERFACE_H 18 #define WISUNINTERFACE_H 20 #include "MeshInterfaceNanostack.h" 43 uint8_t global_addr[16];
45 uint8_t link_local_addr[16];
47 uint8_t parent_addr[16];
77 using MeshInterfaceNanostack::MeshInterfaceNanostack;
92 mesh_error_t set_network_name(
char *network_name);
103 mesh_error_t get_network_name(
char *network_name);
114 mesh_error_t validate_network_name(
char *network_name);
131 mesh_error_t set_network_regulatory_domain(uint8_t regulatory_domain = 0xff, uint8_t operating_class = 0xff, uint8_t operating_mode = 0xff);
144 mesh_error_t get_network_regulatory_domain(uint8_t *regulatory_domain, uint8_t *operating_class, uint8_t *operating_mode);
158 mesh_error_t validate_network_regulatory_domain(uint8_t regulatory_domain, uint8_t operating_class, uint8_t operating_mode);
184 mesh_error_t set_network_size(uint8_t network_size);
195 mesh_error_t get_network_size(uint8_t *network_size);
207 mesh_error_t validate_network_size(uint8_t network_size);
219 mesh_error_t set_channel_mask(uint32_t channel_mask[8]);
230 mesh_error_t get_channel_mask(uint32_t *channel_mask);
242 mesh_error_t validate_channel_mask(uint32_t channel_mask[8]);
259 mesh_error_t set_unicast_channel_function(mesh_channel_function_t channel_function, uint16_t fixed_channel = 0xffff, uint8_t dwell_interval = 0x00);
272 mesh_error_t get_unicast_channel_function(mesh_channel_function_t *channel_function, uint16_t *fixed_channel, uint8_t *dwell_interval);
286 mesh_error_t validate_unicast_channel_function(mesh_channel_function_t channel_function, uint16_t fixed_channel, uint8_t dwell_interval);
304 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);
318 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);
333 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);
348 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);
362 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);
377 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);
389 mesh_error_t set_device_min_sens(uint8_t device_min_sens);
400 mesh_error_t get_device_min_sens(uint8_t *device_min_sens);
412 mesh_error_t validate_device_min_sens(uint8_t device_min_sens);
440 mesh_error_t set_own_certificate(uint8_t *cert, uint16_t cert_len, uint8_t *cert_key = NULL, uint16_t cert_key_len = 0);
450 mesh_error_t remove_own_certificates(
void);
473 mesh_error_t set_trusted_certificate(uint8_t *cert, uint16_t cert_len);
483 mesh_error_t remove_trusted_certificates(
void);
491 bool getRouterIpAddress(
char *address, int8_t len);
502 mesh_error_t enable_statistics(
void);
565 Nanostack::WisunInterface *get_interface()
const;
uint8_t join_state
Wi-SUN join state defined by Wi-SUN specification 1-5.
Wi-SUN mesh network interface class.
uint8_t version
RPL version number.
signed int nsapi_error_t
Type used to represent error codes.
uint16_t primary_parent_rank
RPL Primary Parent Rank.
Mesh physical layer statistics.
Struct ws_stack_state Wi-SUN stack information.
uint8_t instance_id
Router instance identifier.
const int8_t * cca_threshold_table
CCA threshold table.
uint8_t number_of_channels
Number of channels.
Struct ws_cca_threshold_table Wi-SUN CCA threshold table information.
uint8_t rsl_out
parent RSSI Out measured RSSI value calculated using EWMA specified by Wi-SUN from range of -174 (0) ...
uint8_t rsl_in
parent RSSI in measured RSSI value calculated using EWMA specified by Wi-SUN from range of -174 (0) t...
uint8_t device_min_sens
Device RF minimum sensitivity configuration.
uint8_t rpl_dodag_id[16]
Router dodag id.
Struct ws_rpl_info Wi-SUN router RPL information.
uint16_t current_rank
RPL DODAG node current Rank.
uint16_t pan_id
Network PAN ID.