@@ -227,23 +227,23 @@ class CellularNetwork : public NetworkInterface {
227
227
*
228
228
* @remark must be called immediately after constructor.
229
229
* @return NSAPI_ERROR_OK on success
230
- * NSAPI_ERROR_NO_MEMORY on case of memory failure
230
+ * NSAPI_ERROR_NO_MEMORY on memory failure
231
231
*/
232
232
virtual nsapi_error_t init () = 0;
233
233
234
234
/* * Request registering to network.
235
235
*
236
236
* @param plmn format is in numeric format or 0 for automatic network registration
237
237
* @return NSAPI_ERROR_OK on success
238
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
238
+ * NSAPI_ERROR_DEVICE_ERROR on failure
239
239
*/
240
240
virtual nsapi_error_t set_registration (const char *plmn = 0 ) = 0;
241
241
242
242
/* * Get the current network registering mode
243
243
*
244
244
* @param mode on successful return contains the current network registering mode
245
245
* @return NSAPI_ERROR_OK on success
246
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
246
+ * NSAPI_ERROR_DEVICE_ERROR on failure
247
247
*/
248
248
virtual nsapi_error_t get_network_registering_mode (NWRegisteringMode &mode) = 0;
249
249
@@ -253,10 +253,10 @@ class CellularNetwork : public NetworkInterface {
253
253
* registration statue, access technology, cell id...
254
254
*
255
255
* @param type RegistrationType to set urc on/off
256
- * @param on Controls are urc' active or not
256
+ * @param on Controls are urc active or not
257
257
* @return NSAPI_ERROR_OK on success
258
- * NSAPI_ERROR_UNSUPPORTED if RegistrationType not supported by the modem
259
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
258
+ * NSAPI_ERROR_UNSUPPORTED if the modem does not support RegistrationType
259
+ * NSAPI_ERROR_DEVICE_ERROR on failure
260
260
*/
261
261
virtual nsapi_error_t set_registration_urc (RegistrationType type, bool on) = 0;
262
262
@@ -265,8 +265,8 @@ class CellularNetwork : public NetworkInterface {
265
265
* @param type see RegistrationType values
266
266
* @param status see RegistrationStatus values
267
267
* @return NSAPI_ERROR_OK on success
268
- * NSAPI_ERROR_UNSUPPORTED if RegistrationType not supported by the modem
269
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
268
+ * NSAPI_ERROR_UNSUPPORTED if the modem does not support RegistrationType
269
+ * NSAPI_ERROR_DEVICE_ERROR on failure
270
270
*/
271
271
virtual nsapi_error_t get_registration_status (RegistrationType type, RegistrationStatus &status) = 0;
272
272
@@ -276,7 +276,7 @@ class CellularNetwork : public NetworkInterface {
276
276
* @param username Optional username for the APN
277
277
* @param password Optional password fot the APN
278
278
* @return NSAPI_ERROR_OK on success
279
- * NSAPI_ERROR_NO_MEMORY on case of memory failure
279
+ * NSAPI_ERROR_NO_MEMORY on memory failure
280
280
*/
281
281
virtual nsapi_error_t set_credentials (const char *apn,
282
282
const char *username = 0 , const char *password = 0 ) = 0;
@@ -288,7 +288,7 @@ class CellularNetwork : public NetworkInterface {
288
288
* @param username Optional username for the APN
289
289
* @param password Optional password fot the APN
290
290
* @return NSAPI_ERROR_OK on success
291
- * NSAPI_ERROR_NO_MEMORY on case of memory failure
291
+ * NSAPI_ERROR_NO_MEMORY on memory failure
292
292
*/
293
293
virtual nsapi_error_t set_credentials (const char *apn, AuthenticationType type,
294
294
const char *username = 0 , const char *password = 0 ) = 0;
@@ -298,7 +298,7 @@ class CellularNetwork : public NetworkInterface {
298
298
* @deprecated Parameter timeout will be deprecated. Use mbed-os/features/cellular/framework/API/CellularDevice.h set_timeout instead.
299
299
* @param timeout milliseconds to wait for attach response
300
300
* @return NSAPI_ERROR_OK on success
301
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
301
+ * NSAPI_ERROR_DEVICE_ERROR on failure
302
302
*/
303
303
MBED_DEPRECATED_SINCE (" mbed-os-5.9" , " Parameter timeout will be deprecated. Use mbed-os/features/cellular/framework/API/CellularDevice.h set_timeout instead." )
304
304
virtual nsapi_error_t set_attach (int timeout = 10 * 1000 ) = 0;
@@ -307,14 +307,14 @@ class CellularNetwork : public NetworkInterface {
307
307
*
308
308
* @param status see AttachStatus values
309
309
* @return NSAPI_ERROR_OK on success
310
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
310
+ * NSAPI_ERROR_DEVICE_ERROR on failure
311
311
*/
312
312
virtual nsapi_error_t get_attach (AttachStatus &status) = 0;
313
313
314
314
/* * Request detach from a network.
315
315
*
316
316
* @return NSAPI_ERROR_OK on success
317
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
317
+ * NSAPI_ERROR_DEVICE_ERROR on failure
318
318
*/
319
319
virtual nsapi_error_t detach () = 0;
320
320
@@ -335,7 +335,7 @@ class CellularNetwork : public NetworkInterface {
335
335
* @param backoff_timer Backoff timer value associated with PDP APN in seconds
336
336
* @return NSAPI_ERROR_OK on success
337
337
* NSAPI_ERROR_PARAMETER if no access point is set or found when activating context
338
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
338
+ * NSAPI_ERROR_DEVICE_ERROR on failure
339
339
*/
340
340
virtual nsapi_error_t get_apn_backoff_timer (int &backoff_timer) = 0;
341
341
@@ -361,8 +361,8 @@ class CellularNetwork : public NetworkInterface {
361
361
* @param operators Container of reachable operators and their access technologies
362
362
* @param ops_count Number of found operators
363
363
* @return NSAPI_ERROR_OK on success
364
- * NSAPI_ERROR_NO_MEMORY on case of memory failure
365
- * NSAPI_ERROR_DEVICE_ERROR on case of other failures
364
+ * NSAPI_ERROR_NO_MEMORY on memory failure
365
+ * NSAPI_ERROR_DEVICE_ERROR on other failures
366
366
*/
367
367
virtual nsapi_error_t scan_plmn (operList_t &operators, int &ops_count) = 0;
368
368
@@ -371,7 +371,7 @@ class CellularNetwork : public NetworkInterface {
371
371
* @param supported_opt Supported CIoT EPS optimizations.
372
372
* @param preferred_opt Preferred CIoT EPS optimizations.
373
373
* @return NSAPI_ERROR_OK on success
374
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
374
+ * NSAPI_ERROR_DEVICE_ERROR on failure
375
375
*/
376
376
virtual nsapi_error_t set_ciot_optimization_config (Supported_UE_Opt supported_opt,
377
377
Preferred_UE_Opt preferred_opt) = 0;
@@ -381,7 +381,7 @@ class CellularNetwork : public NetworkInterface {
381
381
* @param supported_opt Supported CIoT EPS optimizations.
382
382
* @param preferred_opt Preferred CIoT EPS optimizations.
383
383
* @return NSAPI_ERROR_OK on success
384
- * NSAPI_ERROR_DEVICE_ERROR on case of failure
384
+ * NSAPI_ERROR_DEVICE_ERROR on failure
385
385
*/
386
386
virtual nsapi_error_t get_ciot_optimization_config (Supported_UE_Opt &supported_opt,
387
387
Preferred_UE_Opt &preferred_opt) = 0;
@@ -393,7 +393,7 @@ class CellularNetwork : public NetworkInterface {
393
393
* NSAPI_ERROR_UNSUPPORTED if NetworkStack was not found
394
394
* NSAPI_ERROR_AUTH_FAILURE if password and username were provided and authentication to network failed
395
395
* Also if PPP mode
396
- * NSAPI_ERROR_DEVICE_ERROR on case of failure and check more error from nsapi_ppp_connect(...)
396
+ * NSAPI_ERROR_DEVICE_ERROR on failure and check more error from nsapi_ppp_connect(...)
397
397
*/
398
398
virtual nsapi_error_t connect () = 0;
399
399
@@ -406,9 +406,9 @@ class CellularNetwork : public NetworkInterface {
406
406
* NSAPI_ERROR_NO_CONNECTION if fails to find suitable context to activate or activation failed (if not already activated)
407
407
* NSAPI_ERROR_UNSUPPORTED if NetworkStack was not found
408
408
* NSAPI_ERROR_AUTH_FAILURE if password and username were provided and authentication to network failed
409
- * NSAPI_ERROR_NO_MEMORY on case of memory failure
409
+ * NSAPI_ERROR_NO_MEMORY on memory failure
410
410
* Also if PPP mode
411
- * NSAPI_ERROR_DEVICE_ERROR on case of failure and check more error from nsapi_ppp_connect(...)
411
+ * NSAPI_ERROR_DEVICE_ERROR on failure and check more error from nsapi_ppp_connect(...)
412
412
*/
413
413
virtual nsapi_error_t connect (const char *apn,
414
414
const char *username = 0 , const char *password = 0 ) = 0;
@@ -429,7 +429,7 @@ class CellularNetwork : public NetworkInterface {
429
429
* @param stack_type the stack type to be used.
430
430
*
431
431
* @return NSAPI_ERROR_OK on success
432
- * NSAPI_ERROR_PARAMETER if modem don't support the given stack_type
432
+ * NSAPI_ERROR_PARAMETER if modem does not support the given stack_type
433
433
*/
434
434
virtual nsapi_error_t set_stack_type (nsapi_ip_stack_t stack_type) = 0;
435
435
@@ -443,10 +443,10 @@ class CellularNetwork : public NetworkInterface {
443
443
/* * Get the relevant information for an active non secondary PDP context.
444
444
*
445
445
* @remark optional params are not updated if not received from network.
446
- * @param params_list reference to linked list which is filled on successful call
446
+ * @param params_list reference to linked list, which is filled on successful call
447
447
* @return NSAPI_ERROR_OK on success
448
- * NSAPI_ERROR_NO_MEMORY on case of memory failure
449
- * NSAPI_ERROR_DEVICE_ERROR on case of other failures
448
+ * NSAPI_ERROR_NO_MEMORY on memory failure
449
+ * NSAPI_ERROR_DEVICE_ERROR on other failures
450
450
*/
451
451
virtual nsapi_error_t get_pdpcontext_params (pdpContextList_t ¶ms_list) = 0;
452
452
@@ -459,7 +459,7 @@ class CellularNetwork : public NetworkInterface {
459
459
* @param rsrq signal received quality
460
460
* @param rsrp signal received power
461
461
* @return NSAPI_ERROR_OK on success
462
- * NSAPI_ERROR_DEVICE_ERROR on case of other failures
462
+ * NSAPI_ERROR_DEVICE_ERROR on other failures
463
463
*/
464
464
virtual nsapi_error_t get_extended_signal_quality (int &rxlev, int &ber, int &rscp, int &ecno, int &rsrq, int &rsrp) = 0;
465
465
@@ -468,13 +468,13 @@ class CellularNetwork : public NetworkInterface {
468
468
* @param rssi signal strength level
469
469
* @param ber bit error rate
470
470
* @return NSAPI_ERROR_OK on success
471
- * NSAPI_ERROR_DEVICE_ERROR on case of other failures
471
+ * NSAPI_ERROR_DEVICE_ERROR on other failures
472
472
*/
473
473
virtual nsapi_error_t get_signal_quality (int &rssi, int &ber) = 0;
474
474
475
475
/* * Get cell id.
476
476
*
477
- * @param cell_id cell id
477
+ * @param cell_id cell ID
478
478
* @return NSAPI_ERROR_OK
479
479
*/
480
480
virtual nsapi_error_t get_cell_id (int &cell_id) = 0;
@@ -519,10 +519,10 @@ class CellularNetwork : public NetworkInterface {
519
519
520
520
/* * Read operator names
521
521
*
522
- * @param op_names on successful return will contain linked list of operator names.
522
+ * @param op_names on successful return contains linked list of operator names.
523
523
* @return NSAPI_ERROR_OK on success
524
- * NSAPI_ERROR_NO_MEMORY on case of memory failure
525
- * NSAPI_ERROR_DEVICE_ERROR on case of other failures
524
+ * NSAPI_ERROR_NO_MEMORY on memory failure
525
+ * NSAPI_ERROR_DEVICE_ERROR on other failures
526
526
*/
527
527
virtual nsapi_error_t get_operator_names (operator_names_list &op_names) = 0;
528
528
};
0 commit comments