@@ -158,20 +158,46 @@ class WisunInterface final : public MeshInterfaceNanostack {
158
158
mesh_error_t validate_network_regulatory_domain (uint8_t regulatory_domain, uint8_t operating_class, uint8_t operating_mode);
159
159
160
160
/* *
161
- * \brief Set Wi-SUN network PHY mode and channel plan IDs .
161
+ * \brief Set Wi-SUN network regulatory domain, PHY mode ID and channel plan ID .
162
162
*
163
163
* Function stores new parameters to mbed-mesh-api and uses them when connect() is called next time.
164
164
* If device is already connected to the Wi-SUN network then device will restart network discovery after
165
- * changing the phy_mode_id or channel_plan_id.
165
+ * changing the regulatory_domain, phy_mode_id or channel_plan_id.
166
166
*
167
- * Function overwrites parameters defined by Mbed OS configuration.
167
+ * \param regulatory_domain Values defined in Wi-SUN PHY-specification. Use 0 to leave parameter unchanged or 0xff to use default value.
168
+ * \param phy_mode_id Values defined in Wi-SUN PHY-specification. Use 0 to leave parameter unchanged or 0xff to use default value.
169
+ * \param channel_plan_id Values defined in Wi-SUN PHY-specification. Use 0 to leave parameter unchanged or 0xff to use default value.
170
+ * \return MESH_ERROR_NONE on success.
171
+ * \return MESH_ERROR_UNKNOWN in case of failure.
172
+ * */
173
+ mesh_error_t set_network_domain_configuration (uint8_t regulatory_domain, uint8_t phy_mode_id, uint8_t channel_plan_id);
174
+
175
+ /* *
176
+ * \brief Get Wi-SUN network regulatory domain, PHY mode ID and channel plan ID.
177
+ *
178
+ * Function reads regulatory_domain, phy_mode_id and channel_plan_id from mbed-mesh-api.
168
179
*
169
- * \param phy_mode_id Values defined in Wi-SUN PHY-specification. Use 0xff to leave parameter unchanged.
170
- * \param channel_plan_id Values defined in Wi-SUN PHY-specification. Use 0xff to leave parameter unchanged.
180
+ * \param regulatory_domain Values defined in Wi-SUN PHY-specification.
181
+ * \param phy_mode_id Values defined in Wi-SUN PHY-specification.
182
+ * \param channel_plan_id Values defined in Wi-SUN PHY-specification.
183
+ * \return MESH_ERROR_NONE on success.
184
+ * \return MESH_ERROR_UNKNOWN in case of failure.
185
+ * */
186
+ mesh_error_t get_network_domain_configuration (uint8_t *regulatory_domain, uint8_t *phy_mode_id, uint8_t *channel_plan_id);
187
+
188
+ /* *
189
+ * \brief Validate Wi-SUN network regulatory domain, PHY mode ID and channel plan ID.
190
+ *
191
+ * Function validates regulatory_domain, phy_mode_id and channel_plan_id. Function can be used to test that values that will
192
+ * be used on set function are valid.
193
+ *
194
+ * \param regulatory_domain Values defined in Wi-SUN PHY-specification.
195
+ * \param phy_mode_id Values defined in Wi-SUN PHY-specification.
196
+ * \param channel_plan_id Values defined in Wi-SUN PHY-specification.
171
197
* \return MESH_ERROR_NONE on success.
172
198
* \return MESH_ERROR_UNKNOWN in case of failure.
173
199
* */
174
- mesh_error_t set_network_phy_mode_and_channel_plan_id ( uint8_t phy_mode_id, uint8_t channel_plan_id);
200
+ mesh_error_t validate_network_domain_configuration ( uint8_t regulatory_domain, uint8_t phy_mode_id, uint8_t channel_plan_id);
175
201
176
202
/* *
177
203
* \brief Set Wi-SUN network size.
0 commit comments