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.
ATHandler_stub.h
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 "stdint.h" 00019 #include "stdbool.h" 00020 #include <cstddef> 00021 #include "nsapi_types.h" 00022 #include "ATHandler.h" 00023 #include "FileHandle_stub.h" 00024 #include "Callback.h" 00025 00026 #ifndef __AT_HANDLER_STUB_H__ 00027 #define __AT_HANDLER_STUB_H__ 00028 00029 static const int kRead_string_table_size = 100; 00030 static const int kRead_int_table_size = 100; 00031 static const int kResp_stop_count_default = 100; 00032 // set reference count to -909 to separate it from zero so we can test that ATHandler is really deleted. 00033 static const int kATHandler_destructor_ref_ount = -909; 00034 00035 namespace ATHandler_stub { 00036 extern nsapi_error_t nsapi_error_value; 00037 extern uint8_t nsapi_error_ok_counter; 00038 extern int int_value; 00039 extern int ref_count; 00040 extern int timeout; 00041 extern bool default_timeout; 00042 extern bool debug_on; 00043 extern ssize_t ssize_value; 00044 extern const char *read_string_value; 00045 extern size_t size_value; 00046 extern size_t return_given_size; 00047 extern bool bool_value; 00048 extern uint8_t resp_info_true_counter; 00049 extern uint8_t info_elem_true_counter; 00050 extern uint8_t uint8_value; 00051 extern mbed::FileHandle_stub *fh_value; 00052 extern mbed::device_err_t device_err_value; 00053 extern mbed::Callback<void()> callback; 00054 extern bool call_immediately; 00055 extern const char *read_string_table[kRead_string_table_size]; 00056 extern int read_string_index; 00057 extern int int_valid_count_table[kRead_int_table_size]; 00058 extern int int_count; 00059 extern int resp_stop_success_count; 00060 } 00061 00062 #endif
Generated on Tue Aug 9 2022 00:37:03 by
1.7.2