Skip to content

Commit 411320a

Browse files
author
Amanda Butler
authored
Edit CellularDevice.h
Edit file for complete sentences, consistent tense and correct commas.
1 parent 76672db commit 411320a

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

features/cellular/framework/API/CellularDevice.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ const int MAX_PLMN_SIZE = 16;
3939
* Class CellularDevice
4040
*
4141
* 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.
4343
*/
4444
class CellularDevice {
4545
public:
4646

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.
4949
*
5050
* @return CellularDevice* instance if any
5151
*/
@@ -63,7 +63,7 @@ class CellularDevice {
6363

6464
/** Creates a new CellularContext interface.
6565
*
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
6767
* file handle is used.
6868
* @param apn access point to use with context, can be null.
6969
*
@@ -95,18 +95,18 @@ class CellularDevice {
9595
void set_sim_pin(const char *sim_pin);
9696

9797
/** 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.
100100
*
101101
* @param plmn plmn used when registering to cellular network
102102
*/
103103
void set_plmn(const char *plmn);
104104

105105
/** Start the interface
106106
*
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.
110110
*
111111
* @return NSAPI_ERROR_OK on success
112112
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -116,8 +116,8 @@ class CellularDevice {
116116
/** Start the interface
117117
*
118118
* 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.
121121
*
122122
* @return NSAPI_ERROR_OK on success
123123
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -127,8 +127,8 @@ class CellularDevice {
127127
/** Start the interface
128128
*
129129
* 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.
132132
*
133133
* @return NSAPI_ERROR_OK on success
134134
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -138,8 +138,8 @@ class CellularDevice {
138138
/** Start the interface
139139
*
140140
* 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.
143143
*
144144
* @return NSAPI_ERROR_OK on success
145145
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -148,11 +148,11 @@ class CellularDevice {
148148

149149
/** Register callback for status reporting.
150150
*
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.
153153
*
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
156156
* same information.
157157
*
158158
* @param status_cb The callback for status changes.
@@ -161,39 +161,39 @@ class CellularDevice {
161161

162162
/** Create new CellularNetwork interface.
163163
*
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
165165
* file handle is used.
166166
* @return New instance of interface CellularNetwork.
167167
*/
168168
virtual CellularNetwork *open_network(FileHandle *fh = NULL) = 0;
169169

170170
/** Create new CellularSMS interface.
171171
*
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
173173
* file handle is used.
174174
* @return New instance of interface CellularSMS.
175175
*/
176176
virtual CellularSMS *open_sms(FileHandle *fh = NULL) = 0;
177177

178178
/** Create new CellularPower interface.
179179
*
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
181181
* file handle is used.
182182
* @return New instance of interface CellularPower.
183183
*/
184184
virtual CellularPower *open_power(FileHandle *fh = NULL) = 0;
185185

186186
/** Create new CellularSIM interface.
187187
*
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
189189
* file handle is used.
190190
* @return New instance of interface CellularSIM.
191191
*/
192192
virtual CellularSIM *open_sim(FileHandle *fh = NULL) = 0;
193193

194194
/** Create new CellularInformation interface.
195195
*
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
197197
* file handle is used.
198198
* @return New instance of interface CellularInformation.
199199
*/

0 commit comments

Comments
 (0)