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