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_bbr_api_internal.h Source File

ws_bbr_api_internal.h

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 #ifndef WS_BBR_API_PRIVATE_H_
00019 #define WS_BBR_API_PRIVATE_H_
00020 
00021 
00022 #ifdef HAVE_WS_BORDER_ROUTER
00023 
00024 extern uint16_t test_pan_size_override;
00025 
00026 void ws_bbr_seconds_timer(protocol_interface_info_entry_t *cur, uint32_t seconds);
00027 
00028 uint16_t ws_bbr_pan_size(protocol_interface_info_entry_t *cur);
00029 
00030 void ws_bbr_rpl_config(uint8_t imin, uint8_t doubling, uint8_t redundancy, uint16_t dag_max_rank_increase, uint16_t min_hop_rank_increase);
00031 
00032 bool ws_bbr_ready_to_start(protocol_interface_info_entry_t *cur);
00033 
00034 
00035 #else
00036 
00037 #define ws_bbr_seconds_timer( cur, seconds)
00038 #define ws_bbr_pan_size(cur) 0
00039 #define ws_bbr_rpl_config( imin, doubling, redundancy, dag_max_rank_increase, min_hop_rank_increase)
00040 #define ws_bbr_ready_to_start(cur) true
00041 
00042 #endif //HAVE_WS_BORDER_ROUTER
00043 
00044 #endif /* WS_BBR_API_PRIVATE_H_ */