File tree Expand file tree Collapse file tree 7 files changed +40
-40
lines changed
features/cellular/framework Expand file tree Collapse file tree 7 files changed +40
-40
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ namespace mbed {
28
28
#elif TARGET_MTB_MTS_DRAGONFLY
29
29
#define CELLULAR_DEVICE TELIT_HE910
30
30
#elif TARGET_UBLOX_C030
31
- #define CELLULAR_DEVICE UBLOX_LISA_U
31
+ #define CELLULAR_DEVICE UBLOX_PPP
32
32
#elif TARGET_UBLOX_C027
33
- #define CELLULAR_DEVICE UBLOX_LISA_U
33
+ #define CELLULAR_DEVICE UBLOX_PPP
34
34
#else
35
35
// #error Cellular target not defined, see cellular/targets.h
36
36
// #define CELLULAR_TARGET <target-modem>
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- #include " UBLOX_LISA_U .h"
19
- #include " UBLOX_LISA_U_CellularNetwork .h"
20
- #include " UBLOX_LISA_U_CellularPower .h"
18
+ #include " UBLOX_PPP .h"
19
+ #include " UBLOX_PPP_CellularNetwork .h"
20
+ #include " UBLOX_PPP_CellularPower .h"
21
21
22
22
using namespace mbed ;
23
23
using namespace events ;
24
24
25
- UBLOX_LISA_U::UBLOX_LISA_U (EventQueue &queue) : AT_CellularDevice(queue)
25
+ UBLOX_PPP::UBLOX_PPP (EventQueue &queue) : AT_CellularDevice(queue)
26
26
{
27
27
}
28
28
29
- UBLOX_LISA_U ::~UBLOX_LISA_U ()
29
+ UBLOX_PPP ::~UBLOX_PPP ()
30
30
{
31
31
}
32
32
33
- CellularNetwork *UBLOX_LISA_U ::open_network (FileHandle *fh)
33
+ CellularNetwork *UBLOX_PPP ::open_network (FileHandle *fh)
34
34
{
35
35
if (!_network) {
36
- _network = new UBLOX_LISA_U_CellularNetwork (*get_at_handler (fh));
36
+ _network = new UBLOX_PPP_CellularNetwork (*get_at_handler (fh));
37
37
}
38
38
return _network;
39
39
}
40
40
41
- CellularPower *UBLOX_LISA_U ::open_power (FileHandle *fh)
41
+ CellularPower *UBLOX_PPP ::open_power (FileHandle *fh)
42
42
{
43
43
if (!_power) {
44
- _power = new UBLOX_LISA_U_CellularPower (*get_at_handler (fh));
44
+ _power = new UBLOX_PPP_CellularPower (*get_at_handler (fh));
45
45
}
46
46
return _power;
47
47
}
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- #ifndef UBLOX_LISA_U_H_
19
- #define UBLOX_LISA_U_H_
18
+ #ifndef UBLOX_PPP_H_
19
+ #define UBLOX_PPP_H_
20
20
21
21
#include " AT_CellularDevice.h"
22
22
23
23
namespace mbed {
24
24
25
- class UBLOX_LISA_U : public AT_CellularDevice
25
+ class UBLOX_PPP : public AT_CellularDevice
26
26
{
27
27
28
28
public:
29
- UBLOX_LISA_U (events::EventQueue &queue);
30
- virtual ~UBLOX_LISA_U ();
29
+ UBLOX_PPP (events::EventQueue &queue);
30
+ virtual ~UBLOX_PPP ();
31
31
32
32
public: // CellularDevice
33
33
virtual CellularNetwork *open_network (FileHandle *fh);
@@ -36,4 +36,4 @@ class UBLOX_LISA_U : public AT_CellularDevice
36
36
37
37
} // namespace mbed
38
38
39
- #endif // UBLOX_LISA_U_H_
39
+ #endif // UBLOX_PPP_H_
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- #include " UBLOX_LISA_U_CellularNetwork .h"
18
+ #include " UBLOX_PPP_CellularNetwork .h"
19
19
20
20
using namespace mbed ;
21
21
22
- UBLOX_LISA_U_CellularNetwork::UBLOX_LISA_U_CellularNetwork (ATHandler &atHandler) : AT_CellularNetwork(atHandler)
22
+ UBLOX_PPP_CellularNetwork::UBLOX_PPP_CellularNetwork (ATHandler &atHandler) : AT_CellularNetwork(atHandler)
23
23
{
24
24
}
25
25
26
- UBLOX_LISA_U_CellularNetwork ::~UBLOX_LISA_U_CellularNetwork ()
26
+ UBLOX_PPP_CellularNetwork ::~UBLOX_PPP_CellularNetwork ()
27
27
{
28
28
}
29
29
30
- bool UBLOX_LISA_U_CellularNetwork ::get_modem_stack_type (nsapi_ip_stack_t requested_stack)
30
+ bool UBLOX_PPP_CellularNetwork ::get_modem_stack_type (nsapi_ip_stack_t requested_stack)
31
31
{
32
32
return requested_stack == IPV4_STACK ? true : false ;
33
33
}
34
34
35
- bool UBLOX_LISA_U_CellularNetwork ::has_registration (RegistrationType reg_type)
35
+ bool UBLOX_PPP_CellularNetwork ::has_registration (RegistrationType reg_type)
36
36
{
37
37
return (reg_type == C_REG || reg_type == C_GREG);
38
38
}
39
39
40
- nsapi_error_t UBLOX_LISA_U_CellularNetwork ::set_access_technology_impl (operator_t ::RadioAccessTechnology opRat)
40
+ nsapi_error_t UBLOX_PPP_CellularNetwork ::set_access_technology_impl (operator_t ::RadioAccessTechnology opRat)
41
41
{
42
42
_op_act = operator_t ::RAT_UNKNOWN;
43
43
return NSAPI_ERROR_UNSUPPORTED;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- #ifndef UBLOX_LISA_U_CELLULAR_NETWORK_H_
19
- #define UBLOX_LISA_U_CELLULAR_NETWORK_H_
18
+ #ifndef UBLOX_PPP_CELLULAR_NETWORK_H_
19
+ #define UBLOX_PPP_CELLULAR_NETWORK_H_
20
20
21
21
#include " AT_CellularNetwork.h"
22
22
23
23
namespace mbed {
24
24
25
- class UBLOX_LISA_U_CellularNetwork : public AT_CellularNetwork
25
+ class UBLOX_PPP_CellularNetwork : public AT_CellularNetwork
26
26
{
27
27
public:
28
- UBLOX_LISA_U_CellularNetwork (ATHandler &atHandler);
29
- virtual ~UBLOX_LISA_U_CellularNetwork ();
28
+ UBLOX_PPP_CellularNetwork (ATHandler &atHandler);
29
+ virtual ~UBLOX_PPP_CellularNetwork ();
30
30
31
31
protected:
32
32
virtual bool get_modem_stack_type (nsapi_ip_stack_t requested_stack);
@@ -38,4 +38,4 @@ class UBLOX_LISA_U_CellularNetwork : public AT_CellularNetwork
38
38
39
39
} // namespace mbed
40
40
41
- #endif // UBLOX_LISA_U_CELLULAR_NETWORK_H_
41
+ #endif // UBLOX_PPP_CELLULAR_NETWORK_H_
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- #include " UBLOX_LISA_U_CellularPower .h"
18
+ #include " UBLOX_PPP_CellularPower .h"
19
19
20
20
#include " onboard_modem_api.h"
21
21
22
22
using namespace mbed ;
23
23
24
- UBLOX_LISA_U_CellularPower::UBLOX_LISA_U_CellularPower (ATHandler &atHandler) : AT_CellularPower(atHandler)
24
+ UBLOX_PPP_CellularPower::UBLOX_PPP_CellularPower (ATHandler &atHandler) : AT_CellularPower(atHandler)
25
25
{
26
26
27
27
}
28
28
29
- UBLOX_LISA_U_CellularPower ::~UBLOX_LISA_U_CellularPower ()
29
+ UBLOX_PPP_CellularPower ::~UBLOX_PPP_CellularPower ()
30
30
{
31
31
32
32
}
33
33
34
- nsapi_error_t UBLOX_LISA_U_CellularPower ::on ()
34
+ nsapi_error_t UBLOX_PPP_CellularPower ::on ()
35
35
{
36
36
#if MODEM_ON_BOARD
37
37
::onboard_modem_init ();
@@ -40,7 +40,7 @@ nsapi_error_t UBLOX_LISA_U_CellularPower::on()
40
40
return NSAPI_ERROR_OK;
41
41
}
42
42
43
- nsapi_error_t UBLOX_LISA_U_CellularPower ::off ()
43
+ nsapi_error_t UBLOX_PPP_CellularPower ::off ()
44
44
{
45
45
#if MODEM_ON_BOARD
46
46
::onboard_modem_power_down ();
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- #ifndef UBLOX_LISA_U_CELLULARPOWER_H_
19
- #define UBLOX_LISA_U_CELLULARPOWER_H_
18
+ #ifndef UBLOX_PPP_CELLULARPOWER_H_
19
+ #define UBLOX_PPP_CELLULARPOWER_H_
20
20
21
21
#include " AT_CellularPower.h"
22
22
23
23
namespace mbed {
24
24
25
- class UBLOX_LISA_U_CellularPower : public AT_CellularPower
25
+ class UBLOX_PPP_CellularPower : public AT_CellularPower
26
26
{
27
27
public:
28
- UBLOX_LISA_U_CellularPower (ATHandler &atHandler);
29
- virtual ~UBLOX_LISA_U_CellularPower ();
28
+ UBLOX_PPP_CellularPower (ATHandler &atHandler);
29
+ virtual ~UBLOX_PPP_CellularPower ();
30
30
31
31
public: // from CellularPower
32
32
@@ -37,4 +37,4 @@ class UBLOX_LISA_U_CellularPower : public AT_CellularPower
37
37
38
38
} // namespace mbed
39
39
40
- #endif // UBLOX_LISA_U_CELLULARPOWER_H_
40
+ #endif // UBLOX_PPP_CELLULARPOWER_H_
You can’t perform that action at this time.
0 commit comments