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