@@ -196,6 +196,48 @@ class WisunInterface : public MeshInterfaceNanostack {
196
196
* */
197
197
mesh_error_t validate_network_regulatory_domain (uint8_t regulatory_domain, uint8_t operating_class, uint8_t operating_mode);
198
198
199
+ /* *
200
+ * \brief Set Wi-SUN network regulatory domain, PHY mode ID and channel plan ID.
201
+ *
202
+ * Function stores new parameters to mbed-mesh-api and uses them when connect() is called next time.
203
+ * If device is already connected to the Wi-SUN network then device will restart network discovery after
204
+ * changing the regulatory_domain, phy_mode_id or channel_plan_id.
205
+ *
206
+ * \param regulatory_domain Values defined in Wi-SUN PHY-specification. Use 0 to leave parameter unchanged or 0xff to use default value.
207
+ * \param phy_mode_id Values defined in Wi-SUN PHY-specification. Use 0 to leave parameter unchanged or 0xff to use default value.
208
+ * \param channel_plan_id Values defined in Wi-SUN PHY-specification. Use 0 to leave parameter unchanged or 0xff to use default value.
209
+ * \return MESH_ERROR_NONE on success.
210
+ * \return MESH_ERROR_UNKNOWN in case of failure.
211
+ * */
212
+ mesh_error_t set_network_domain_configuration (uint8_t regulatory_domain, uint8_t phy_mode_id, uint8_t channel_plan_id);
213
+
214
+ /* *
215
+ * \brief Get Wi-SUN network regulatory domain, PHY mode ID and channel plan ID.
216
+ *
217
+ * Function reads regulatory_domain, phy_mode_id and channel_plan_id from mbed-mesh-api.
218
+ *
219
+ * \param regulatory_domain Values defined in Wi-SUN PHY-specification.
220
+ * \param phy_mode_id Values defined in Wi-SUN PHY-specification.
221
+ * \param channel_plan_id Values defined in Wi-SUN PHY-specification.
222
+ * \return MESH_ERROR_NONE on success.
223
+ * \return MESH_ERROR_UNKNOWN in case of failure.
224
+ * */
225
+ mesh_error_t get_network_domain_configuration (uint8_t *regulatory_domain, uint8_t *phy_mode_id, uint8_t *channel_plan_id);
226
+
227
+ /* *
228
+ * \brief Validate Wi-SUN network regulatory domain, PHY mode ID and channel plan ID.
229
+ *
230
+ * Function validates regulatory_domain, phy_mode_id and channel_plan_id. Function can be used to test that values that will
231
+ * be used on set function are valid.
232
+ *
233
+ * \param regulatory_domain Values defined in Wi-SUN PHY-specification.
234
+ * \param phy_mode_id Values defined in Wi-SUN PHY-specification.
235
+ * \param channel_plan_id Values defined in Wi-SUN PHY-specification.
236
+ * \return MESH_ERROR_NONE on success.
237
+ * \return MESH_ERROR_UNKNOWN in case of failure.
238
+ * */
239
+ mesh_error_t validate_network_domain_configuration (uint8_t regulatory_domain, uint8_t phy_mode_id, uint8_t channel_plan_id);
240
+
199
241
/* *
200
242
* \brief Set Wi-SUN network size.
201
243
*
0 commit comments