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.
OnboardCellularInterface.cpp
00001 /* Copyright (c) 2017 ARM Limited 00002 * 00003 * Licensed under the Apache License, Version 2.0 (the "License"); 00004 * you may not use this file except in compliance with the License. 00005 * You may obtain a copy of the License at 00006 * 00007 * http://www.apache.org/licenses/LICENSE-2.0 00008 * 00009 * Unless required by applicable law or agreed to in writing, software 00010 * distributed under the License is distributed on an "AS IS" BASIS, 00011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 * See the License for the specific language governing permissions and 00013 * limitations under the License. 00014 */ 00015 #include "OnboardCellularInterface.h" 00016 00017 #if MODEM_ON_BOARD && MODEM_ON_BOARD_UART && NSAPI_PPP_AVAILABLE 00018 00019 #include "onboard_modem_api.h" 00020 00021 /** 00022 * OnboardCellularInterface is an on-board specific implementation. 00023 */ 00024 OnboardCellularInterface::OnboardCellularInterface(bool debug) : 00025 UARTCellularInterface(MDMTXD, MDMRXD, MDMDCD, MDMRTS, 00026 MDMCTS, MDMRI, MDMDTR, MDMDSR, 00027 MBED_CONF_PPP_CELL_IFACE_BAUD_RATE, MDM_PIN_POLARITY, debug) 00028 { 00029 } 00030 00031 OnboardCellularInterface::~OnboardCellularInterface() 00032 { 00033 } 00034 00035 void OnboardCellularInterface::modem_init() 00036 { 00037 ::onboard_modem_init(); 00038 } 00039 00040 void OnboardCellularInterface::modem_deinit() 00041 { 00042 ::onboard_modem_deinit(); 00043 } 00044 00045 void OnboardCellularInterface::modem_power_up() 00046 { 00047 ::onboard_modem_power_up(); 00048 } 00049 00050 void OnboardCellularInterface::modem_power_down() 00051 { 00052 ::onboard_modem_power_down(); 00053 } 00054 #endif
Generated on Thu Jul 14 2022 14:36:20 by
