Mbed OS Reference
Loading...
Searching...
No Matches
ONBOARD_SARA4_PPP.h
1/* mbed Microcontroller Library
2 * Copyright (c) 2018 ARM Limited
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef ONBOARD_SARA4_PPP_
19#define ONBOARD_SARA4_PPP_
20
21#include "SARA4_PPP.h"
22
23namespace mbed {
24
26public:
28
33
34private:
35 uint8_t initialized;
36
37 void press_power_button(int time_ms);
38
39 void onboard_modem_init();
40
41 void onboard_modem_deinit();
42
43 void onboard_modem_power_up();
44
45 void onboard_modem_power_down();
46};
47
48} // namespace mbed
49
50#endif // ONBOARD_SARA4_PPP_
Class FileHandle.
Definition: FileHandle.h:46
virtual nsapi_error_t hard_power_off()
Sets the modem in unplugged state.
virtual nsapi_error_t soft_power_on()
Powers up the modem.
virtual nsapi_error_t hard_power_on()
Sets the modem up for powering on This is equivalent to plugging in the device, i....
virtual nsapi_error_t soft_power_off()
Powers down the modem.
signed int nsapi_error_t
Type used to represent error codes.
Definition: nsapi_types.h:142