BA / Mbed OS BaBoRo1
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers whiteboard.h Source File

whiteboard.h

00001 /*
00002  * Copyright (c) 2013-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 #ifndef WHITEBOARD_H_
00019 #define WHITEBOARD_H_
00020 
00021 #include "whiteboard_api.h"
00022 #ifdef WHITEBOARD
00023 extern void whiteboard_init(int8_t id);
00024 extern void whiteboard_init_by_prefix(int8_t id, const uint8_t address[static 8]);
00025 void whiteboard_rm_entry(int8_t id, const uint8_t address[static 16]);
00026 extern whiteboard_entry_t *whiteboard_table_update(const uint8_t address[static 16], const uint8_t eui64[static 8], uint8_t *status);
00027 extern whiteboard_entry_t *whiteboard_table_check_address(const uint8_t address[static 16]);
00028 extern int8_t whiteboard_interface_unregister_all_address(int8_t nwk_id);
00029 extern int8_t whiteboard_interface_register(const uint8_t address[static 16], int8_t nwk_id);
00030 extern void whiteboard_ttl_update(uint16_t ttl_time);
00031 extern bool whiteboard_interface_address_cmp(const uint8_t address[static 16]);
00032 extern uint16_t whiteboard_size_get(void);
00033 #else
00034 #define whiteboard_init(id)
00035 #define whiteboard_init_by_prefix(id, address)
00036 #define whiteboard_ttl_update(ttl_time)
00037 #define whiteboard_rm_entry(id, address)
00038 #define whiteboard_table_check_address(address) NULL
00039 #define whiteboard_table_update(address, eui64, status) NULL
00040 #define whiteboard_interface_unregister_all_address(nwk_id) -1
00041 #define whiteboard_interface_address_cmp(address) false
00042 #endif
00043 
00044 #endif /* WHITEBOARD_H_ */