File tree Expand file tree Collapse file tree 4 files changed +90
-0
lines changed
features/cellular/framework/targets/TELIT/ME910 Expand file tree Collapse file tree 4 files changed +90
-0
lines changed Original file line number Diff line number Diff line change 17
17
18
18
#include " TELIT_ME910.h"
19
19
#include " TELIT_ME910_CellularContext.h"
20
+ #include " TELIT_ME910_CellularNetwork.h"
20
21
#include " AT_CellularNetwork.h"
21
22
#include " PinNames.h"
22
23
#include " rtos/ThisThread.h"
@@ -187,3 +188,8 @@ nsapi_error_t TELIT_ME910::soft_power_off()
187
188
{
188
189
return AT_CellularDevice::soft_power_off ();
189
190
}
191
+
192
+ AT_CellularNetwork *TELIT_ME910::open_network_impl (ATHandler &at)
193
+ {
194
+ return new TELIT_ME910_CellularNetwork (at);
195
+ }
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ class TELIT_ME910 : public AT_CellularDevice {
48
48
virtual nsapi_error_t hard_power_off ();
49
49
virtual nsapi_error_t soft_power_on ();
50
50
virtual nsapi_error_t soft_power_off ();
51
+ virtual AT_CellularNetwork *open_network_impl (ATHandler &at);
52
+
51
53
private:
52
54
bool _active_high;
53
55
DigitalOut _pwr_key;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2019, 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
+ #include " TELIT_ME910_CellularNetwork.h"
19
+
20
+ using namespace mbed ;
21
+
22
+ TELIT_ME910_CellularNetwork::TELIT_ME910_CellularNetwork (ATHandler &atHandler) : AT_CellularNetwork(atHandler)
23
+ {
24
+ }
25
+
26
+ TELIT_ME910_CellularNetwork::~TELIT_ME910_CellularNetwork ()
27
+ {
28
+ }
29
+
30
+ nsapi_error_t TELIT_ME910_CellularNetwork::set_access_technology_impl (RadioAccessTechnology opsAct)
31
+ {
32
+ switch (opsAct) {
33
+ case RAT_GSM:
34
+ case RAT_CATM1:
35
+ case RAT_NB1:
36
+ _op_act = opsAct;
37
+ return NSAPI_ERROR_OK;
38
+
39
+ default :
40
+ _op_act = RAT_UNKNOWN;
41
+ return NSAPI_ERROR_UNSUPPORTED;
42
+ }
43
+ }
44
+
45
+
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2019, 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 TELIT_ME910_CELLULAR_NETWORK_H_
19
+ #define TELIT_ME910_CELLULAR_NETWORK_H_
20
+
21
+ #include " AT_CellularNetwork.h"
22
+
23
+ namespace mbed {
24
+
25
+ class TELIT_ME910_CellularNetwork : public AT_CellularNetwork {
26
+ public:
27
+ TELIT_ME910_CellularNetwork (ATHandler &atHandler);
28
+ virtual ~ TELIT_ME910_CellularNetwork();
29
+
30
+ protected:
31
+ virtual nsapi_error_t set_access_technology_impl (RadioAccessTechnology opRat);
32
+
33
+ };
34
+
35
+ } // namespace mbed
36
+
37
+ #endif // TELIT_ME910_CELLULAR_NETWORK_H_
You can’t perform that action at this time.
0 commit comments