Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
net_fhss.h
00001 /* 00002 * Copyright (c) 2015-2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 /** 00019 * \file net_fhss.h 00020 * \brief FHSS API 00021 * 00022 */ 00023 00024 #ifndef NET_FHSS_H_ 00025 #define NET_FHSS_H_ 00026 #include "ns_types.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 /** 00033 * @brief Creates FHSS API instance which will be registered to software MAC. 00034 * @param fhss_configuration Basic FHSS configuration. 00035 * @param fhss_timer FHSS platform timer interface and configuration. 00036 * @param fhss_statistics FHSS statistics storage. 00037 * @return New FHSS instance if successful, NULL otherwise. 00038 */ 00039 extern fhss_api_t *ns_fhss_create(const fhss_configuration_t *fhss_configuration, const fhss_timer_t *fhss_timer, fhss_statistics_t *fhss_statistics); 00040 00041 /** 00042 * @brief Set synchronization time configuration for FHSS network. Should be only called from Border router. 00043 * @param fhss_api FHSS instance. 00044 * @param fhss_synch_configuration FHSS synchronization time configuration. 00045 * @return 0 on success, -1 on fail. 00046 */ 00047 extern int ns_fhss_configuration_set(fhss_api_t *fhss_api, const fhss_synch_configuration_t *fhss_synch_configuration); 00048 00049 /** 00050 * @brief Deletes a FHSS API instance and removes it from software MAC. 00051 * @param fhss_api FHSS instance. 00052 * @return 0 on success, -1 on fail. 00053 */ 00054 extern int ns_fhss_delete(fhss_api_t *fhss_api); 00055 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif /* NET_FHSS_H_ */
Generated on Tue Jul 12 2022 12:22:14 by
