takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AT_CellularBase_stub.cpp Source File

AT_CellularBase_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 "nsapi_types.h"
00019 #include "AT_CellularBase.h"
00020 #include "AT_CellularBase_stub.h"
00021 
00022 
00023 using namespace mbed;
00024 
00025 ATHandler *AT_CellularBase_stub::handler_value = NULL;
00026 ATHandler *AT_CellularBase_stub::handler_at_constructor_value = NULL;
00027 device_err_t AT_CellularBase_stub::device_err_value;
00028 bool AT_CellularBase_stub::supported_bool = true;
00029 
00030 AT_CellularBase::AT_CellularBase(ATHandler &at) : _at(at)
00031 {
00032     AT_CellularBase_stub::handler_at_constructor_value = &_at;
00033 }
00034 
00035 ATHandler &AT_CellularBase::get_at_handler()
00036 {
00037     return *AT_CellularBase_stub::handler_value;
00038 }
00039 
00040 device_err_t AT_CellularBase::get_device_error() const
00041 {
00042     return AT_CellularBase_stub::device_err_value;
00043 }
00044 
00045 bool AT_CellularBase::is_supported(SupportedFeature feature)
00046 {
00047     return AT_CellularBase_stub::supported_bool;
00048 }