Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ws_empty_functions.c Source File

ws_empty_functions.c

00001 /*
00002  * Copyright (c) 2018-2019, 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 #include <string.h>
00019 #include "nsconfig.h"
00020 #include "ns_types.h"
00021 #include "ns_trace.h"
00022 #include <ns_list.h>
00023 #include <nsdynmemLIB.h>
00024 #include "NWK_INTERFACE/Include/protocol.h"
00025 #include "6LoWPAN/ws/ws_common.h"
00026 
00027 #include "ws_management_api.h"
00028 
00029 #ifndef HAVE_WS
00030 int ws_management_node_init(
00031     int8_t interface_id,
00032     uint8_t regulatory_domain,
00033     char *network_name_ptr,
00034     fhss_timer_t *fhss_timer_ptr)
00035 {
00036     (void)interface_id;
00037     (void)regulatory_domain;
00038     (void)network_name_ptr;
00039     (void)fhss_timer_ptr;
00040     return -1;
00041 }
00042 
00043 int ws_management_network_name_set(
00044     int8_t interface_id,
00045     char *network_name_ptr)
00046 {
00047     (void)interface_id;
00048     (void)network_name_ptr;
00049     return -1;
00050 }
00051 
00052 int ws_management_regulatory_domain_set(
00053     int8_t interface_id,
00054     uint8_t regulatory_domain,
00055     uint8_t operating_class,
00056     uint8_t operating_mode)
00057 {
00058     (void)interface_id;
00059     (void)regulatory_domain;
00060     (void)operating_class;
00061     (void)operating_mode;
00062     return -1;
00063 }
00064 
00065 int ws_management_network_size_set(
00066     int8_t interface_id,
00067     uint8_t network_size)
00068 {
00069     (void)interface_id;
00070     (void)network_size;
00071     return -1;
00072 }
00073 
00074 int ws_management_channel_mask_set(
00075     int8_t interface_id,
00076     uint32_t channel_mask[8])
00077 {
00078     (void)interface_id;
00079     (void)channel_mask;
00080     return -1;
00081 }
00082 
00083 int ws_management_channel_plan_set(
00084     int8_t interface_id,
00085     uint8_t channel_plan,
00086     uint8_t uc_channel_function,
00087     uint8_t bc_channel_function,
00088     uint32_t ch0_freq, // Stack can not modify this
00089     uint8_t channel_spacing,// Stack can not modify this
00090     uint8_t number_of_channels)
00091 {
00092     (void)interface_id;
00093     (void)channel_plan;
00094     (void)uc_channel_function;
00095     (void)bc_channel_function;
00096     (void)ch0_freq;
00097     (void)channel_spacing;
00098     (void)number_of_channels;
00099     return -1;
00100 }
00101 
00102 int ws_management_fhss_timing_configure(
00103     int8_t interface_id,
00104     uint8_t fhss_uc_dwell_interval,
00105     uint32_t fhss_broadcast_interval,
00106     uint8_t fhss_bc_dwell_interval)
00107 {
00108     (void)interface_id;
00109     (void)fhss_uc_dwell_interval;
00110     (void)fhss_broadcast_interval;
00111     (void)fhss_bc_dwell_interval;
00112     return -1;
00113 }
00114 
00115 int ws_management_fhss_unicast_channel_function_configure(
00116     int8_t interface_id,
00117     uint8_t channel_function,
00118     uint16_t fixed_channel,
00119     uint8_t dwell_interval)
00120 {
00121     (void)interface_id;
00122     (void)channel_function;
00123     (void)fixed_channel;
00124     (void)dwell_interval;
00125     return -1;
00126 }
00127 
00128 int ws_management_fhss_broadcast_channel_function_configure(
00129     int8_t interface_id,
00130     uint8_t channel_function,
00131     uint16_t fixed_channel,
00132     uint8_t dwell_interval,
00133     uint32_t broadcast_interval)
00134 {
00135     (void)interface_id;
00136     (void)channel_function;
00137     (void)fixed_channel;
00138     (void)dwell_interval;
00139     (void)broadcast_interval;
00140     return -1;
00141 }
00142 
00143 /* ### test api ### */
00144 int ws_test_pan_size_set(int8_t interface_id, uint16_t pan_size)
00145 {
00146     (void) interface_id;
00147     (void) pan_size;
00148     return -1;
00149 }
00150 int ws_test_max_child_count_set(int8_t interface_id, uint16_t child_count)
00151 {
00152     (void) interface_id;
00153     (void) child_count;
00154     return -1;
00155 }
00156 
00157 int ws_test_gtk_set(int8_t interface_id, uint8_t *gtk[4])
00158 {
00159     (void) interface_id;
00160     (void) gtk;
00161 
00162     return -1;
00163 }
00164 
00165 int ws_test_active_key_set(int8_t interface_id, uint8_t index)
00166 {
00167     (void) interface_id;
00168     (void) index;
00169 
00170     return -1;
00171 }
00172 
00173 int ws_test_key_lifetime_set(int8_t interface_id, uint32_t gtk_lifetime, uint32_t pmk_lifetime, uint32_t ptk_lifetime)
00174 {
00175     (void) interface_id;
00176     (void) gtk_lifetime;
00177     (void) pmk_lifetime;
00178     (void) ptk_lifetime;
00179 
00180     return -1;
00181 }
00182 
00183 int ws_test_gtk_time_settings_set(int8_t interface_id, uint8_t revocat_lifetime_reduct, uint8_t new_activation_time, uint32_t max_mismatch)
00184 {
00185     (void) interface_id;
00186     (void) revocat_lifetime_reduct;
00187     (void) new_activation_time;
00188     (void) max_mismatch;
00189 
00190     return -1;
00191 }
00192 
00193 int ws_test_next_gtk_set(int8_t interface_id, uint8_t *gtk[4])
00194 {
00195     (void) interface_id;
00196     (void) gtk;
00197 
00198     return -1;
00199 }
00200 
00201 int ws_statistics_start(int8_t interface_id, ws_statistics_t *stats_ptr)
00202 {
00203     (void) interface_id;
00204     (void) stats_ptr;
00205     return -1;
00206 }
00207 
00208 int ws_statistics_stop(int8_t interface_id)
00209 {
00210     (void) interface_id;
00211     return -1;
00212 }
00213 
00214 #endif // no HAVE_WS