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.
LoRaMacCommand_stub.cpp
00001 /* 00002 * Copyright (c) , 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 "LoRaMacCommand.h" 00019 #include "LoRaMac.h" 00020 00021 #include "LoRaMacCommand_stub.h" 00022 00023 lorawan_status_t LoRaMacCommand_stub::status_value = LORAWAN_STATUS_OK; 00024 bool LoRaMacCommand_stub::bool_value = false; 00025 uint8_t LoRaMacCommand_stub::uint8_value = 0; 00026 int32_t LoRaMacCommand_stub::int32_value = 0; 00027 00028 LoRaMacCommand::LoRaMacCommand() 00029 { 00030 } 00031 00032 void LoRaMacCommand::clear_command_buffer() 00033 { 00034 } 00035 00036 uint8_t LoRaMacCommand::get_mac_cmd_length() const 00037 { 00038 return LoRaMacCommand_stub::uint8_value; 00039 } 00040 00041 uint8_t *LoRaMacCommand::get_mac_commands_buffer() 00042 { 00043 return &LoRaMacCommand_stub::uint8_value; 00044 } 00045 00046 void LoRaMacCommand::parse_mac_commands_to_repeat() 00047 { 00048 } 00049 00050 00051 void LoRaMacCommand::clear_repeat_buffer() 00052 { 00053 } 00054 00055 void LoRaMacCommand::copy_repeat_commands_to_buffer() 00056 { 00057 } 00058 00059 uint8_t LoRaMacCommand::get_repeat_commands_length() const 00060 { 00061 return LoRaMacCommand_stub::uint8_value; 00062 } 00063 00064 void LoRaMacCommand::clear_sticky_mac_cmd() 00065 { 00066 } 00067 00068 bool LoRaMacCommand::has_sticky_mac_cmd() const 00069 { 00070 return LoRaMacCommand_stub::bool_value; 00071 } 00072 00073 lorawan_status_t LoRaMacCommand::process_mac_commands(const uint8_t *payload, uint8_t mac_index, 00074 uint8_t commands_size, uint8_t snr, 00075 loramac_mlme_confirm_t & mlme_conf, 00076 lora_mac_system_params_t &mac_sys_params, 00077 LoRaPHY &lora_phy) 00078 { 00079 return LoRaMacCommand_stub::status_value; 00080 } 00081 00082 int32_t LoRaMacCommand::cmd_buffer_remaining() const 00083 { 00084 return LoRaMacCommand_stub::int32_value; 00085 } 00086 00087 void LoRaMacCommand::set_batterylevel_callback(mbed::Callback<uint8_t(void)> battery_level) 00088 { 00089 } 00090 00091 lorawan_status_t LoRaMacCommand::add_link_check_req() 00092 { 00093 return LoRaMacCommand_stub::status_value; 00094 } 00095 00096 lorawan_status_t LoRaMacCommand::add_link_adr_ans(uint8_t status) 00097 { 00098 return LoRaMacCommand_stub::status_value; 00099 } 00100 00101 lorawan_status_t LoRaMacCommand::add_duty_cycle_ans() 00102 { 00103 return LoRaMacCommand_stub::status_value; 00104 } 00105 00106 lorawan_status_t LoRaMacCommand::add_rx_param_setup_ans(uint8_t status) 00107 { 00108 return LoRaMacCommand_stub::status_value; 00109 } 00110 00111 lorawan_status_t LoRaMacCommand::add_dev_status_ans(uint8_t battery, uint8_t margin) 00112 { 00113 return LoRaMacCommand_stub::status_value; 00114 } 00115 00116 lorawan_status_t LoRaMacCommand::add_new_channel_ans(uint8_t status) 00117 { 00118 return LoRaMacCommand_stub::status_value; 00119 } 00120 00121 lorawan_status_t LoRaMacCommand::add_rx_timing_setup_ans() 00122 { 00123 return LoRaMacCommand_stub::status_value; 00124 } 00125 00126 lorawan_status_t LoRaMacCommand::add_tx_param_setup_ans() 00127 { 00128 return LoRaMacCommand_stub::status_value; 00129 } 00130 00131 lorawan_status_t LoRaMacCommand::add_dl_channel_ans(uint8_t status) 00132 { 00133 return LoRaMacCommand_stub::status_value; 00134 }
Generated on Tue Aug 9 2022 00:37:09 by
1.7.2