@@ -39,13 +39,13 @@ const int MAX_PLMN_SIZE = 16;
39
39
* Class CellularDevice
40
40
*
41
41
* An abstract interface that defines opening and closing of cellular interfaces.
42
- * Deleting/Closing of opened interfaces can be done only via this class.
42
+ * You can delete or close opened interfaces only through this class.
43
43
*/
44
44
class CellularDevice {
45
45
public:
46
46
47
- /* * Return singleton instance of CellularDevice if CELLULAR_DEVICE is defined. If CELLULAR_DEVICE is not
48
- * defined then returns NULL. Implementation is marked as weak.
47
+ /* * Returns singleton instance of CellularDevice if CELLULAR_DEVICE is defined. If CELLULAR_DEVICE is not
48
+ * defined, then it returns NULL. Implementation is marked as weak.
49
49
*
50
50
* @return CellularDevice* instance if any
51
51
*/
@@ -63,7 +63,7 @@ class CellularDevice {
63
63
64
64
/* * Creates a new CellularContext interface.
65
65
*
66
- * @param fh file handle used in communication to modem. Can be for example UART handle. If null then the default
66
+ * @param fh file handle used in communication to modem. This can be, for example, UART handle. If null, then the default
67
67
* file handle is used.
68
68
* @param apn access point to use with context, can be null.
69
69
*
@@ -95,18 +95,18 @@ class CellularDevice {
95
95
void set_sim_pin (const char *sim_pin);
96
96
97
97
/* * Plmn to use when registering to cellular network.
98
- * If plmn is set then registering is forced to this plmn. If plmn is not set then automatic
99
- * registering is used when registering to a cellular network. Does not start any operations.
98
+ * If plmn is set, then registering is forced to this plmn. If plmn is not set, then automatic
99
+ * registering is used when registering to a cellular network. It doesn't start any operations.
100
100
*
101
101
* @param plmn plmn used when registering to cellular network
102
102
*/
103
103
void set_plmn (const char *plmn);
104
104
105
105
/* * Start the interface
106
106
*
107
- * Power on the device and does the initializations for communication with the modem. .
108
- * API is asynchronous. Application can get results from CellularContext callback which is set
109
- * with attach(...) or callback which is set by attach(...) in this class.
107
+ * Powers on the device and does the initializations for communication with the modem.
108
+ * API is asynchronous. Application can get results from CellularContext callback, which is set
109
+ * with attach(...), or callback, which is set by attach(...), in this class.
110
110
*
111
111
* @return NSAPI_ERROR_OK on success
112
112
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -116,8 +116,8 @@ class CellularDevice {
116
116
/* * Start the interface
117
117
*
118
118
* Attempts to open the sim.
119
- * API is asynchronous. Application can get results from CellularContext callback which is set
120
- * with attach(...) or callback which is set by attach(...) in this class.
119
+ * API is asynchronous. Application can get results from CellularContext callback, which is set
120
+ * with attach(...), or callback, which is set by attach(...), in this class.
121
121
*
122
122
* @return NSAPI_ERROR_OK on success
123
123
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -127,8 +127,8 @@ class CellularDevice {
127
127
/* * Start the interface
128
128
*
129
129
* Attempts to register the device to cellular network.
130
- * API is asynchronous. Application can get results from CellularContext callback which is set
131
- * with attach(...) or callback which is set by attach(...) in this class.
130
+ * API is asynchronous. Application can get results from CellularContext callback, which is set
131
+ * with attach(...), or callback, which is set by attach(...), in this class.
132
132
*
133
133
* @return NSAPI_ERROR_OK on success
134
134
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -138,8 +138,8 @@ class CellularDevice {
138
138
/* * Start the interface
139
139
*
140
140
* Attempts to attach the device to cellular network.
141
- * API is asynchronous. Application can get results from CellularContext callback which is set
142
- * with attach(...) or callback which is set by attach(...) in this class.
141
+ * API is asynchronous. Application can get results from CellularContext callback, which is set
142
+ * with attach(...), or callback, which is set by attach(...), in this class.
143
143
*
144
144
* @return NSAPI_ERROR_OK on success
145
145
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -148,11 +148,11 @@ class CellularDevice {
148
148
149
149
/* * Register callback for status reporting.
150
150
*
151
- * The specified status callback function will be called on the network and cellular device status changes.
152
- * The parameters on the callback are the event type and event- type dependent reason parameter.
151
+ * The specified status callback function is called on the network, and the cellular device status changes.
152
+ * The parameters on the callback are the event type and event type dependent reason parameter.
153
153
*
154
- * @remark deleting CellularDevice/CellularContext in callback not allowed.
155
- * @remark application should not attach to this function if using CellularContext::attach as it will contain the
154
+ * @remark deleting CellularDevice/CellularContext in callback is not allowed.
155
+ * @remark application should not attach to this function if it uses CellularContext::attach because it contains the
156
156
* same information.
157
157
*
158
158
* @param status_cb The callback for status changes.
@@ -161,39 +161,39 @@ class CellularDevice {
161
161
162
162
/* * Create new CellularNetwork interface.
163
163
*
164
- * @param fh file handle used in communication to modem. Can be for example UART handle. If null then the default
164
+ * @param fh file handle used in communication to modem. This can be, for example, UART handle. If null, then the default
165
165
* file handle is used.
166
166
* @return New instance of interface CellularNetwork.
167
167
*/
168
168
virtual CellularNetwork *open_network (FileHandle *fh = NULL ) = 0;
169
169
170
170
/* * Create new CellularSMS interface.
171
171
*
172
- * @param fh file handle used in communication to modem. Can be for example UART handle. If null then the default
172
+ * @param fh file handle used in communication to modem. This can be, for example, UART handle. If null, then the default
173
173
* file handle is used.
174
174
* @return New instance of interface CellularSMS.
175
175
*/
176
176
virtual CellularSMS *open_sms (FileHandle *fh = NULL ) = 0;
177
177
178
178
/* * Create new CellularPower interface.
179
179
*
180
- * @param fh file handle used in communication to modem. Can be for example UART handle. If null then the default
180
+ * @param fh file handle used in communication to modem. This can be, for example, UART handle. If null, then the default
181
181
* file handle is used.
182
182
* @return New instance of interface CellularPower.
183
183
*/
184
184
virtual CellularPower *open_power (FileHandle *fh = NULL ) = 0;
185
185
186
186
/* * Create new CellularSIM interface.
187
187
*
188
- * @param fh file handle used in communication to modem. Can be for example UART handle. If null then the default
188
+ * @param fh file handle used in communication to modem. This can be, for example, UART handle. If null, then the default
189
189
* file handle is used.
190
190
* @return New instance of interface CellularSIM.
191
191
*/
192
192
virtual CellularSIM *open_sim (FileHandle *fh = NULL ) = 0;
193
193
194
194
/* * Create new CellularInformation interface.
195
195
*
196
- * @param fh file handle used in communication to modem. Can be for example UART handle. If null then the default
196
+ * @param fh file handle used in communication to modem. This can be, for example, UART handle. If null, then the default
197
197
* file handle is used.
198
198
* @return New instance of interface CellularInformation.
199
199
*/
0 commit comments