BA / Mbed OS BaBoRo1
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lowpan_adaptation_interface.h Source File

lowpan_adaptation_interface.h

00001 /*
00002  * Copyright (c) 2016-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 LOWPAN_ADAPTATION_INTERFACE_H_
00019 #define LOWPAN_ADAPTATION_INTERFACE_H_
00020 #include "Core/include/address.h"
00021 
00022 struct protocol_interface_info_entry;
00023 struct mcps_data_conf_s;
00024 struct buffer;
00025 int8_t lowpan_adaptation_interface_init(int8_t interface_id, uint16_t mac_mtu_size);
00026 
00027 int8_t lowpan_adaptation_interface_free(int8_t interface_id);
00028 
00029 int8_t lowpan_adaptation_interface_reset(int8_t interface_id);
00030 
00031 /**
00032  * \brief call this before normatl TX. This function prepare buffer link spesific metadata and verify packet destination
00033  */
00034 struct buffer * lowpan_adaptation_data_process_tx_preprocess(struct protocol_interface_info_entry *cur, struct buffer *buf );
00035 
00036 int8_t lowpan_adaptation_interface_tx(struct protocol_interface_info_entry *cur, struct buffer *buf );
00037 
00038 int8_t lowpan_adaptation_interface_tx_confirm(struct protocol_interface_info_entry *cur, const struct mcps_data_conf_s *confirm);
00039 
00040 struct buffer *lowpan_adaptation_reassembly(struct protocol_interface_info_entry *cur, struct buffer *buf );
00041 
00042 bool lowpan_adaptation_tx_active(int8_t interface_id);
00043 
00044 int8_t lowpan_adaptation_indirect_free_messages_from_queues_by_address(struct protocol_interface_info_entry *cur, uint8_t *address_ptr, addrtype_t adr_type);
00045 
00046 int8_t lowpan_adaptation_indirect_queue_params_set(struct protocol_interface_info_entry *cur, uint16_t indirect_big_packet_threshold, uint16_t max_indirect_big_packets_total, uint16_t max_indirect_small_packets_per_child);
00047 
00048 #endif /* LOWPAN_ADAPTATION_INTERFACE_H_ */