Mistake on this page?
Report an issue in GitHub or email us
STModCellular.h
1 /*
2  * Copyright (c) 2018, Arm Limited and affiliates.
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 STMOD_CELLULAR_H_
19 #define STMOD_CELLULAR_H_
20 
21 #include "QUECTEL_UG96.h"
22 #include "QUECTEL_BG96.h"
23 #include "DigitalOut.h"
24 #include "DigitalIn.h"
25 
26 /* List of supported STMOD+ cellular expansion boards */
27 #define STMOD_BG96 0
28 #define STMOD_UG96 1
29 
30 
31 #if (MBED_CONF_STMOD_CELLULAR_TYPE == STMOD_BG96)
32 #define STMOD_CELLULAR_MODEM QUECTEL_BG96
33 #endif
34 
35 #if (MBED_CONF_STMOD_CELLULAR_TYPE == STMOD_UG96)
36 #define STMOD_CELLULAR_MODEM QUECTEL_UG96
37 #endif
38 
39 namespace mbed {
40 
41 class STModCellular : public STMOD_CELLULAR_MODEM {
42 private:
43  DigitalOut m_powerkey;
44  DigitalOut m_reset;
45  DigitalOut m_simsel0;
46  DigitalOut m_simsel1;
47  DigitalOut m_mdmdtr;
48  DigitalIn m_sim_reset;
49  DigitalIn m_sim_clk;
50  DigitalIn m_sim_data;
51 public:
53  virtual nsapi_error_t soft_power_on();
54  virtual nsapi_error_t soft_power_off();
55  virtual ~STModCellular();
56 };
57 
58 } // namespace mbed
59 #endif // STMOD_CELLULAR_H_
signed int nsapi_error_t
Type used to represent error codes.
Definition: nsapi_types.h:95
Class FileHandle.
Definition: FileHandle.h:46
A digital output, used for setting the state of a pin.
Definition: DigitalOut.h:49
A digital input, used for reading the state of a pin.
Definition: DigitalIn.h:54
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.