Skip to content

Commit 7f98f5b

Browse files
authored
Merge pull request #6652 from jarvte/update_doxygen_for_deprecated_apis
Cellular: Updated doxygen for deprecated API's.
2 parents a37ba4b + a83745b commit 7f98f5b

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

features/netsocket/CellularInterface.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include "netsocket/NetworkInterface.h"
2121

2222
/** CellularInterface class
23+
*
24+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularNetwork.h instead.
2325
*
2426
* Common interface that is shared between ethernet hardware
2527
* @addtogroup netsocket
@@ -33,6 +35,8 @@ class CellularInterface : public NetworkInterface
3335
virtual ~CellularInterface() {};
3436

3537
/** Set the cellular network APN and credentials
38+
*
39+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularNetwork.h instead.
3640
*
3741
* @param apn Optional name of the network to connect to
3842
* @param username Optional username for the APN
@@ -44,6 +48,8 @@ class CellularInterface : public NetworkInterface
4448
const char *username = 0, const char *password = 0) = 0;
4549

4650
/** Start the interface
51+
*
52+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularNetwork.h instead.
4753
*
4854
* @param apn Optional name of the network to connect to
4955
* @param username Optional username for your APN
@@ -55,6 +61,8 @@ class CellularInterface : public NetworkInterface
5561
const char *username = 0, const char *password = 0) = 0;
5662

5763
/** Start the interface
64+
*
65+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularNetwork.h instead.
5866
*
5967
* Attempts to connect to a cellular network based on supplied credentials
6068
*
@@ -64,6 +72,8 @@ class CellularInterface : public NetworkInterface
6472
virtual nsapi_error_t connect() = 0;
6573

6674
/** Stop the interface
75+
*
76+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularNetwork.h instead.
6777
*
6878
* @return 0 on success, negative error code on failure
6979
*/

features/netsocket/cellular/generic_modem_driver/OnboardCellularInterface.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ typedef mbed::EasyCellularConnection OnboardCellularInterface;
2424
#include "UARTCellularInterface.h"
2525

2626
/** OnboardCellularInterface class
27+
*
28+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularPower.h instead.
2729
*
2830
* This interface serves as the controller/driver for an
2931
* onboard modem implementing onboard_modem_api.h.
@@ -37,14 +39,22 @@ class OnboardCellularInterface : public UARTCellularInterface {
3739

3840
public:
3941

42+
/** Constructor
43+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularPower.h instead.
44+
*/
4045
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/framework/API/CellularPower.h instead.")
4146
OnboardCellularInterface(bool debug = false);
4247

48+
/** Destructor
49+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularPower.h instead.
50+
*/
4351
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/framework/API/CellularPower.h instead.")
4452
virtual ~OnboardCellularInterface();
4553

4654
protected:
4755
/** Sets the modem up for powering on
56+
*
57+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularPower.h instead.
4858
*
4959
* modem_init() is equivalent to plugging in the device, for example, attaching power and serial port.
5060
* Uses onboard_modem_api.h where the target provides the implementation of onboard_modem_api.
@@ -53,6 +63,8 @@ class OnboardCellularInterface : public UARTCellularInterface {
5363
virtual void modem_init();
5464

5565
/** Sets the modem in unplugged state
66+
*
67+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularPower.h instead.
5668
*
5769
* modem_deinit() will be equivalent to pulling the plug off of the device, in other words, detaching power
5870
* and serial port. This puts the modem in lowest power state.
@@ -62,6 +74,8 @@ class OnboardCellularInterface : public UARTCellularInterface {
6274
virtual void modem_deinit();
6375

6476
/** Powers up the modem
77+
*
78+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularPower.h instead.
6579
*
6680
* modem_power_up() is equivalent to pressing the soft power button.
6781
* The driver may repeat this if the modem is not responsive to AT commands.
@@ -71,6 +85,8 @@ class OnboardCellularInterface : public UARTCellularInterface {
7185
virtual void modem_power_up();
7286

7387
/** Powers down the modem
88+
*
89+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/framework/API/CellularPower.h instead.
7490
*
7591
* modem_power_down() is equivalent to turning off the modem by button press.
7692
* Uses onboard_modem_api.h where the target provides the implementation of onboard_modem_api.

features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ typedef struct {
9191
} device_info;
9292

9393
/** PPPCellularInterface class
94+
*
95+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
9496
*
9597
* This interface serves as the controller/driver for the Cellular
9698
* modems (tested with UBLOX_C027 and MTS_DRAGONFLY_F411RE).
@@ -105,17 +107,25 @@ class PPPCellularInterface : public CellularBase {
105107
public:
106108

107109
/** Constructor for a generic modem, using a single FileHandle for commands and PPP data.
110+
*
111+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
108112
*
109113
* The file handle pointer is not accessed within the constructor, only recorded for later
110114
* use - this permits a derived class to pass a pointer to a not-yet-constructed member object.
111115
*/
112116
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
113117
PPPCellularInterface(FileHandle *fh, bool debug = false);
114118

119+
/** Destructor
120+
*
121+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
122+
*/
115123
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
116124
virtual ~PPPCellularInterface();
117125

118126
/** Set the Cellular network credentials
127+
*
128+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
119129
*
120130
* Please check documentation of connect() for default behaviour of APN settings.
121131
*
@@ -128,13 +138,17 @@ class PPPCellularInterface : public CellularBase {
128138
const char *pwd = 0);
129139

130140
/** Set the pin code for SIM card
141+
*
142+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
131143
*
132144
* @param sim_pin PIN for the SIM card
133145
*/
134146
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
135147
virtual void set_sim_pin(const char *sim_pin);
136148

137149
/** Start the interface
150+
*
151+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
138152
*
139153
* Attempts to connect to a Cellular network.
140154
* This driver is written mainly for data network connections as CellularInterface
@@ -154,6 +168,8 @@ class PPPCellularInterface : public CellularBase {
154168
const char *uname = 0, const char *pwd = 0);
155169

156170
/** Attempt to connect to the Cellular network
171+
*
172+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
157173
*
158174
* Brings up the network interface. Connects to the Cellular Radio
159175
* network and then brings up the underlying network stack to be used
@@ -187,6 +203,8 @@ class PPPCellularInterface : public CellularBase {
187203
virtual nsapi_error_t disconnect();
188204

189205
/** Adds or removes a SIM facility lock
206+
*
207+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
190208
*
191209
* Can be used to enable or disable SIM pin check at device startup.
192210
* This API sets up flags for the driver which would either enable or disable
@@ -200,6 +218,8 @@ class PPPCellularInterface : public CellularBase {
200218
void set_sim_pin_check(bool set);
201219

202220
/** Change the pin for the SIM card
221+
*
222+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
203223
*
204224
* Provide the new pin for your SIM card with this API. Old pin code will be assumed to
205225
* be set using set_SIM_pin() API. This API have no immediate effect. While establishing
@@ -211,6 +231,8 @@ class PPPCellularInterface : public CellularBase {
211231
void set_new_sim_pin(const char *new_pin);
212232

213233
/** Check if the connection is currently established or not
234+
*
235+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
214236
*
215237
* @return true/false If the cellular module have successfully acquired a carrier and is
216238
* connected to an external packet data network using PPP, isConnected()
@@ -220,6 +242,8 @@ class PPPCellularInterface : public CellularBase {
220242
virtual bool is_connected();
221243

222244
/** Get the local IP address
245+
*
246+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
223247
*
224248
* @return Null-terminated representation of the local IP address
225249
* or null if no IP address has been received
@@ -228,6 +252,8 @@ class PPPCellularInterface : public CellularBase {
228252
virtual const char *get_ip_address();
229253

230254
/** Get the local network mask
255+
*
256+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
231257
*
232258
* @return Null-terminated representation of the local network mask
233259
* or null if no network mask has been received
@@ -236,6 +262,8 @@ class PPPCellularInterface : public CellularBase {
236262
virtual const char *get_netmask();
237263

238264
/** Get the local gateways
265+
*
266+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
239267
*
240268
* @return Null-terminated representation of the local gateway
241269
* or null if no network mask has been received
@@ -252,20 +280,26 @@ class PPPCellularInterface : public CellularBase {
252280
void modem_debug_on(bool on);
253281

254282
/** Register callback for status reporting
283+
*
284+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
255285
*
256286
* @param status_cb The callback for status changes
257287
*/
258288
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
259289
virtual void attach(Callback<void(nsapi_event_t, intptr_t)> status_cb);
260290

261291
/** Get the connection status
292+
*
293+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
262294
*
263295
* @return The connection status according to nsapi_connection_status_t
264296
*/
265297
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
266298
virtual nsapi_connection_status_t get_connection_status() const;
267299

268300
/** Set blocking status of connect() which by default should be blocking
301+
*
302+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
269303
*
270304
* @param blocking true if connect is blocking
271305
* @return 0 on success, negative error code on failure

features/netsocket/cellular/generic_modem_driver/UARTCellularInterface.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#if NSAPI_PPP_AVAILABLE
2323

2424
/** UARTCellularInterface class
25+
*
26+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
2527
*
2628
* This interface serves as the controller/driver for Cellular
2729
* modems attached via a UART (tested with UBLOX_C027 and MTS_DRAGONFLY_F411RE).
@@ -34,12 +36,20 @@ class UARTCellularInterface : public PPPCellularInterface {
3436

3537
public:
3638

39+
/** Constructor
40+
*
41+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
42+
*/
3743
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
3844
UARTCellularInterface(PinName tx, PinName rx, PinName dcd = NC, PinName rts = NC, PinName cts = NC, PinName ri = NC,
3945
PinName dtr = NC, PinName dsr = NC, int baud = MBED_CONF_PPP_CELL_IFACE_BAUD_RATE,
4046
bool active_high = false,
4147
bool debug = false);
4248

49+
/** Destructor
50+
*
51+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
52+
*/
4353
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
4454
virtual ~UARTCellularInterface();
4555

@@ -50,6 +60,8 @@ class UARTCellularInterface : public PPPCellularInterface {
5060

5161
protected:
5262
/** Enable or disable hang-up detection
63+
*
64+
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
5365
*
5466
* When in PPP data pump mode, it is helpful if the FileHandle will signal hang-up via
5567
* POLLHUP, e.g., if the DCD line is deasserted on a UART. During command mode, this

0 commit comments

Comments
 (0)