Skip to content

Commit e3bc37b

Browse files
author
Cruz Monrreal
authored
Merge pull request #9655 from mirelachirica/nonip_doxygen_updates
Cellular: Non-IP doxygen updates
2 parents 4c04771 + 57a93bb commit e3bc37b

File tree

10 files changed

+68
-22
lines changed

10 files changed

+68
-22
lines changed

features/cellular/framework/API/CellularContext.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
#include "CellularDevice.h"
2222
#include "ControlPlane_netif.h"
2323

24+
/** @file CellularContext.h
25+
* @brief Cellular PDP context class
26+
*
27+
*/
28+
2429
namespace mbed {
2530

2631
typedef enum pdp_type {

features/cellular/framework/API/CellularDevice.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
#include "ATHandler.h"
2525
#include "UARTSerial.h"
2626

27+
/** @file CellularDevice.h
28+
* @brief Class CellularDevice
29+
*
30+
*/
2731
namespace mbed {
2832

2933
class CellularSMS;
@@ -168,7 +172,7 @@ class CellularDevice {
168172
* @param fh file handle used in communication to modem. This can be, for example, UART handle. If null, then the default
169173
* file handle is used.
170174
* @param apn access point to use with context, can be null.
171-
* @param cp_req flag indicating if EPS control plane optimisation is required
175+
* @param cp_req flag indicating if EPS control plane optimization is required
172176
* @param nonip_req flag indicating if this context is required to be Non-IP
173177
*
174178
* @return new instance of class CellularContext or NULL in case of failure
@@ -184,7 +188,7 @@ class CellularDevice {
184188
* @param apn access point to use with context, can be null.
185189
* @param dcd_pin Pin used to set data carrier detect on/off for the given UART
186190
* @param active_high a boolean set to true if DCD polarity is active low
187-
* @param cp_req Flag indicating if EPS control plane optimisation is required
191+
* @param cp_req Flag indicating if EPS control plane optimization is required
188192
* @param nonip_req Flag indicating if this context is required to be Non-IP
189193
*
190194
* @return new instance of class CellularContext or NULL in case of failure

features/cellular/framework/API/CellularNetwork.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class CellularNetwork {
260260
* @param supported_opt Supported CIoT EPS optimizations
261261
* (the HW support can be checked with get_ciot_ue_optimization_config).
262262
* @param preferred_opt Preferred CIoT EPS optimizations.
263-
* @param network_support_cb This callback will be called when CIoT network optimisation support is known
263+
* @param network_support_cb This callback will be called when CIoT network optimization support is known
264264
* @return NSAPI_ERROR_OK on success
265265
* NSAPI_ERROR_DEVICE_ERROR on failure
266266
*/

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ nsapi_error_t AT_CellularContext::do_activate_context()
460460
}
461461

462462
// In IP case but also when Non-IP is requested and
463-
// control plane optimisation is not established -> activate ip context
463+
// control plane optimization is not established -> activate ip context
464464
_nonip_req = false;
465465
return activate_ip_context();
466466
}

features/cellular/framework/AT/AT_CellularContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
135135
// flag indicating if Non-IP context was requested to be setup
136136
bool _nonip_req;
137137

138-
// tells if CCIOTOPTI received green from network for CP optimisation use
138+
// tells if CCIOTOPTI received green from network for CP optimization use
139139
bool _cp_in_use;
140140
};
141141

features/cellular/framework/AT/AT_CellularDevice.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ class AT_CellularDevice : public CellularDevice {
9999

100100
/** Creates new instance of AT_CellularContext or if overridden, modem specific implementation.
101101
*
102-
* @param at ATHandler reference for communication with the modem.
103-
* @param apn access point to use with context
104-
* @return new instance of class AT_CellularContext
102+
* @param at ATHandler reference for communication with the modem.
103+
* @param apn access point to use with context
104+
* @param cp_req flag indicating if control plane EPS optimization needs to be setup
105+
* @param nonip_req flag indicating if PDP context needs to be Non-IP
106+
* @return new instance of class AT_CellularContext
105107
*
106108
*/
107109
virtual AT_CellularContext *create_context_impl(ATHandler &at, const char *apn, bool cp_req = false, bool nonip_req = false);

features/cellular/framework/AT/AT_ControlPlane_netif.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ class AT_ControlPlane_netif: public ControlPlane_netif, public AT_CellularBase {
1212
protected:
1313

1414
// ControlPlane_netif
15-
// +CSODCP: 3GPP 27007 10.1.43
15+
16+
/* Sends data using +CSODCP specified in
17+
* 3GPP 27007 10.1.43: Sending of originating data via the control plane
18+
*/
1619
virtual nsapi_size_or_error_t send(const void *cpdata, nsapi_size_t cpdata_length);
17-
// +CRTDCP: 3GPP 27007 10.1.44
20+
21+
22+
/* Receives data using +CRTDCP specified in
23+
* 3GPP 27007 10.1.44: Reporting of terminating data via the control plane
24+
*/
1825
virtual nsapi_size_or_error_t recv(void *cpdata, nsapi_size_t cpdata_length);
26+
1927
virtual void data_received();
2028
virtual void attach(void (*callback)(void *), void *data);
2129

@@ -27,6 +35,7 @@ class AT_ControlPlane_netif: public ControlPlane_netif, public AT_CellularBase {
2735
void *_data;
2836
char _recv_buffer[MAX_CP_DATA_RECV_LEN];
2937
size_t _recv_len;
38+
// Called on receiving URC: +CRTDCP
3039
void urc_cp_recv();
3140
};
3241

features/cellular/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"value": null
1919
},
2020
"control-plane-opt": {
21-
"help": "Enables control plane CIoT EPS optimisation",
21+
"help": "Enables control plane CIoT EPS optimization",
2222
"value": false
2323
}
2424
}

features/netsocket/cellular/CellularNonIPSocket.h

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
/** \addtogroup netsocket */
3-
/** @{*/
4-
/* Socket
1+
/* CellularNonIPSocket
52
* Copyright (c) 2015 ARM Limited
63
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -30,7 +27,13 @@
3027

3128
namespace mbed {
3229

33-
//Socket implementation for non ip datagrams over cellular control plane
30+
/** \addtogroup netsocket */
31+
/** @{*/
32+
33+
/** Socket implementation for cellular Non-IP data delivery(NIDD).
34+
* Relies on Control Plane CIoT EPS optimization feature,
35+
* implemented in ControlPlane_netif class.
36+
*/
3437
class CellularNonIPSocket : public Socket {
3538
public:
3639
/** Destroy the socket.
@@ -101,25 +104,33 @@ class CellularNonIPSocket : public Socket {
101104
*/
102105
virtual void set_blocking(bool blocking);
103106

104-
/** @copydoc Socket::set_blocking
107+
/** @copydoc Socket::set_timeout
105108
*/
106109
virtual void set_timeout(int timeout);
107110

108111
/** @copydoc Socket::sigio
109112
*/
110113
virtual void sigio(mbed::Callback<void()> func);
111114

112-
// NOT SUPPORTED
115+
/// NOT APPLICABLE
113116
virtual nsapi_error_t connect(const SocketAddress &address);
117+
/// NOT APPLICABLE
114118
virtual Socket *accept(nsapi_error_t *error = NULL);
119+
/// NOT APPLICABLE
115120
virtual nsapi_error_t listen(int backlog = 1);
121+
/// NOT APPLICABLE
116122
virtual nsapi_error_t setsockopt(int level, int optname, const void *optval, unsigned optlen);
123+
/// NOT APPLICABLE
117124
virtual nsapi_error_t getsockopt(int level, int optname, void *optval, unsigned *optlen);
125+
/// NOT APPLICABLE
118126
virtual nsapi_error_t getpeername(SocketAddress *address);
127+
/// NOT APPLICABLE
119128
virtual nsapi_size_or_error_t sendto(const SocketAddress &address,
120129
const void *data, nsapi_size_t size);
130+
/// NOT APPLICABLE
121131
virtual nsapi_size_or_error_t recvfrom(SocketAddress *address,
122132
void *data, nsapi_size_t size);
133+
/// NOT APPLICABLE
123134
virtual nsapi_error_t bind(const SocketAddress &address);
124135

125136
protected:
@@ -143,8 +154,7 @@ class CellularNonIPSocket : public Socket {
143154
bool _opened;
144155
};
145156

157+
/** @}*/
146158
} // namespace mbed
147159

148160
#endif // CELLULARNONIPSOCKET_H
149-
150-
/** @}*/

features/netsocket/cellular/ControlPlane_netif.h

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,26 @@
1919

2020
#include "nsapi_types.h"
2121

22+
/** @file ControlPlane_netif.h
23+
* @brief Implements support for data transfer using Control Plane CIoT EPS optimization.
24+
*
25+
*/
26+
2227
namespace mbed {
2328

2429
/* Length of the buffer storing data received over control plane */
2530
#define MAX_CP_DATA_RECV_LEN 2048
2631

2732
// TODO: need to make this l3ip compatible
33+
34+
/**
35+
* @addtogroup cellular
36+
* @{
37+
*/
38+
39+
/** Implements support for data transfer using
40+
* Control Plane CIoT EPS optimization specified in 3GPP 23.401(4.10), 3GPP 23.682(4.5.14).
41+
*/
2842
class ControlPlane_netif {
2943
public:
3044
ControlPlane_netif() {}
@@ -58,8 +72,6 @@ class ControlPlane_netif {
5872
* is received from network. It will invoke the callback set
5973
* by the above attach.
6074
*
61-
* @param buffer Buffer containing received data
62-
* @param size Size of data in bytes
6375
*/
6476
virtual void data_received() = 0;
6577

@@ -78,5 +90,9 @@ class ControlPlane_netif {
7890
virtual void attach(void (*callback)(void *), void *data) = 0;
7991
};
8092

93+
/**
94+
* @}
95+
*/
96+
8197
} // mbed namespace
8298
#endif

0 commit comments

Comments
 (0)