Skip to content

Commit f331ac3

Browse files
authored
Merge pull request #6402 from u-blox/cellular_test_target
Renaming Ublox library for mbed cellular framework
2 parents 501953b + c376e50 commit f331ac3

File tree

7 files changed

+55
-40
lines changed

7 files changed

+55
-40
lines changed

features/cellular/framework/common/CellularTargets.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ namespace mbed {
2828
#elif TARGET_MTB_MTS_DRAGONFLY
2929
#define CELLULAR_DEVICE TELIT_HE910
3030
#elif TARGET_UBLOX_C030
31-
#define CELLULAR_DEVICE UBLOX_LISA_U
31+
#define CELLULAR_DEVICE UBLOX_PPP
3232
#elif TARGET_UBLOX_C027
33-
#define CELLULAR_DEVICE UBLOX_LISA_U
33+
#define CELLULAR_DEVICE UBLOX_PPP
3434
#else
3535
//#error Cellular target not defined, see cellular/targets.h
3636
//#define CELLULAR_TARGET <target-modem>

features/cellular/framework/targets/UBLOX/LISA_U/UBLOX_LISA_U.cpp renamed to features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,33 @@
1515
* limitations under the License.
1616
*/
1717

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"
2121

2222
using namespace mbed;
2323
using namespace events;
2424

25-
UBLOX_LISA_U::UBLOX_LISA_U(EventQueue &queue) : AT_CellularDevice(queue)
25+
UBLOX_PPP::UBLOX_PPP(EventQueue &queue) : AT_CellularDevice(queue)
2626
{
2727
}
2828

29-
UBLOX_LISA_U::~UBLOX_LISA_U()
29+
UBLOX_PPP::~UBLOX_PPP()
3030
{
3131
}
3232

33-
CellularNetwork *UBLOX_LISA_U::open_network(FileHandle *fh)
33+
CellularNetwork *UBLOX_PPP::open_network(FileHandle *fh)
3434
{
3535
if (!_network) {
36-
_network = new UBLOX_LISA_U_CellularNetwork(*get_at_handler(fh));
36+
_network = new UBLOX_PPP_CellularNetwork(*get_at_handler(fh));
3737
}
3838
return _network;
3939
}
4040

41-
CellularPower *UBLOX_LISA_U::open_power(FileHandle *fh)
41+
CellularPower *UBLOX_PPP::open_power(FileHandle *fh)
4242
{
4343
if (!_power) {
44-
_power = new UBLOX_LISA_U_CellularPower(*get_at_handler(fh));
44+
_power = new UBLOX_PPP_CellularPower(*get_at_handler(fh));
4545
}
4646
return _power;
4747
}

features/cellular/framework/targets/UBLOX/LISA_U/UBLOX_LISA_U.h renamed to features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP.h

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,30 @@
1515
* limitations under the License.
1616
*/
1717

18-
#ifndef UBLOX_LISA_U_H_
19-
#define UBLOX_LISA_U_H_
18+
#ifndef UBLOX_PPP_H_
19+
#define UBLOX_PPP_H_
2020

2121
#include "AT_CellularDevice.h"
2222

2323
namespace mbed {
2424

25-
class UBLOX_LISA_U : public AT_CellularDevice
25+
class UBLOX_PPP : public AT_CellularDevice
2626
{
2727

2828
public:
29-
UBLOX_LISA_U(events::EventQueue &queue);
30-
virtual ~UBLOX_LISA_U();
29+
UBLOX_PPP(events::EventQueue &queue);
30+
virtual ~UBLOX_PPP();
3131

3232
public: // CellularDevice
3333
virtual CellularNetwork *open_network(FileHandle *fh);
3434
virtual CellularPower *open_power(FileHandle *fh);
3535
};
3636

37+
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, Use UBLOX_PPP instead of UBLOX_LISA_U.")
38+
class UBLOX_LISA_U : public UBLOX_PPP
39+
{
40+
};
41+
3742
} // namespace mbed
3843

39-
#endif // UBLOX_LISA_U_H_
44+
#endif // UBLOX_PPP_H_

features/cellular/framework/targets/UBLOX/LISA_U/UBLOX_LISA_U_CellularNetwork.cpp renamed to features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP_CellularNetwork.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "UBLOX_LISA_U_CellularNetwork.h"
18+
#include "UBLOX_PPP_CellularNetwork.h"
1919

2020
using namespace mbed;
2121

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)
2323
{
2424
}
2525

26-
UBLOX_LISA_U_CellularNetwork::~UBLOX_LISA_U_CellularNetwork()
26+
UBLOX_PPP_CellularNetwork::~UBLOX_PPP_CellularNetwork()
2727
{
2828
}
2929

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)
3131
{
3232
return requested_stack == IPV4_STACK ? true : false;
3333
}
3434

35-
bool UBLOX_LISA_U_CellularNetwork::has_registration(RegistrationType reg_type)
35+
bool UBLOX_PPP_CellularNetwork::has_registration(RegistrationType reg_type)
3636
{
3737
return (reg_type == C_REG || reg_type == C_GREG);
3838
}
3939

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)
4141
{
4242
_op_act = operator_t::RAT_UNKNOWN;
4343
return NSAPI_ERROR_UNSUPPORTED;

features/cellular/framework/targets/UBLOX/LISA_U/UBLOX_LISA_U_CellularNetwork.h renamed to features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP_CellularNetwork.h

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
* limitations under the License.
1616
*/
1717

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_
2020

2121
#include "AT_CellularNetwork.h"
2222

2323
namespace mbed {
2424

25-
class UBLOX_LISA_U_CellularNetwork : public AT_CellularNetwork
25+
class UBLOX_PPP_CellularNetwork : public AT_CellularNetwork
2626
{
2727
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();
3030

3131
protected:
3232
virtual bool get_modem_stack_type(nsapi_ip_stack_t requested_stack);
@@ -36,6 +36,11 @@ class UBLOX_LISA_U_CellularNetwork : public AT_CellularNetwork
3636
virtual nsapi_error_t set_access_technology_impl(operator_t::RadioAccessTechnology opRat);
3737
};
3838

39+
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, Use UBLOX_PPP_CellularNetwork instead of UBLOX_LISA_U_CellularNetwork.")
40+
class UBLOX_LISA_U_CellularNetwork : public UBLOX_PPP_CellularNetwork
41+
{
42+
};
43+
3944
} // namespace mbed
4045

41-
#endif // UBLOX_LISA_U_CELLULAR_NETWORK_H_
46+
#endif // UBLOX_PPP_CELLULAR_NETWORK_H_

features/cellular/framework/targets/UBLOX/LISA_U/UBLOX_LISA_U_CellularPower.cpp renamed to features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP_CellularPower.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "UBLOX_LISA_U_CellularPower.h"
18+
#include "UBLOX_PPP_CellularPower.h"
1919

2020
#include "onboard_modem_api.h"
2121

2222
using namespace mbed;
2323

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)
2525
{
2626

2727
}
2828

29-
UBLOX_LISA_U_CellularPower::~UBLOX_LISA_U_CellularPower()
29+
UBLOX_PPP_CellularPower::~UBLOX_PPP_CellularPower()
3030
{
3131

3232
}
3333

34-
nsapi_error_t UBLOX_LISA_U_CellularPower::on()
34+
nsapi_error_t UBLOX_PPP_CellularPower::on()
3535
{
3636
#if MODEM_ON_BOARD
3737
::onboard_modem_init();
@@ -40,7 +40,7 @@ nsapi_error_t UBLOX_LISA_U_CellularPower::on()
4040
return NSAPI_ERROR_OK;
4141
}
4242

43-
nsapi_error_t UBLOX_LISA_U_CellularPower::off()
43+
nsapi_error_t UBLOX_PPP_CellularPower::off()
4444
{
4545
#if MODEM_ON_BOARD
4646
::onboard_modem_power_down();

features/cellular/framework/targets/UBLOX/LISA_U/UBLOX_LISA_U_CellularPower.h renamed to features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP_CellularPower.h

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
* limitations under the License.
1616
*/
1717

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_
2020

2121
#include "AT_CellularPower.h"
2222

2323
namespace mbed {
2424

25-
class UBLOX_LISA_U_CellularPower : public AT_CellularPower
25+
class UBLOX_PPP_CellularPower : public AT_CellularPower
2626
{
2727
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();
3030

3131
public: //from CellularPower
3232

@@ -35,6 +35,11 @@ class UBLOX_LISA_U_CellularPower : public AT_CellularPower
3535
virtual nsapi_error_t off();
3636
};
3737

38+
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, Use UBLOX_PPP_CellularPower instead of UBLOX_LISA_U_CellularPower.")
39+
class UBLOX_LISA_U_CellularPower : public UBLOX_PPP_CellularPower
40+
{
41+
};
42+
3843
} // namespace mbed
3944

40-
#endif // UBLOX_LISA_U_CELLULARPOWER_H_
45+
#endif // UBLOX_PPP_CELLULARPOWER_H_

0 commit comments

Comments
 (0)