Skip to content

Commit a3f1ad7

Browse files
author
Teppo Järvelin
committed
Cellular: updated doxygen for CellularContext and CellularDevice.
1 parent 7995e8b commit a3f1ad7

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

features/cellular/framework/API/CellularContext.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ class CellularContext : public CellularBase {
106106
virtual nsapi_error_t set_blocking(bool blocking) = 0;
107107
virtual NetworkStack *get_stack() = 0;
108108
virtual const char *get_ip_address() = 0;
109+
110+
/** Register callback for status reporting.
111+
*
112+
* The specified status callback function will be called on the network and cellular device status changes.
113+
* The parameters on the callback are the event type and event-type dependent reason parameter.
114+
*
115+
* @remark deleting CellularDevice/CellularContext in callback not allowed.
116+
*
117+
* @param status_cb The callback for status changes.
118+
*/
109119
virtual void attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb) = 0;
110120
virtual nsapi_error_t connect() = 0;
111121
virtual nsapi_error_t disconnect() = 0;

features/cellular/framework/API/CellularDevice.h

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ class CellularDevice {
104104
/** Start the interface
105105
*
106106
* Power on the device and does the initializations for communication with the modem..
107-
* By default this API is synchronous. API can be set to asynchronous with method set_blocking(...).
108-
* In synchronous and asynchronous mode application can get result in from callback which is set with
109-
* attach(...)
107+
* API is asynchronous. Application can get results from CellularContext callback which is set
108+
* with attach(...) or callback which is set by attach(...) in this class.
110109
*
111110
* @return NSAPI_ERROR_OK on success
112111
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -116,9 +115,8 @@ class CellularDevice {
116115
/** Start the interface
117116
*
118117
* Attempts to open the sim.
119-
* By default this API is synchronous. API can be set to asynchronous with method set_blocking(...).
120-
* In synchronous and asynchronous mode application can get result in from callback which is set with
121-
* attach(...)
118+
* API is asynchronous. Application can get results from CellularContext callback which is set
119+
* with attach(...) or callback which is set by attach(...) in this class.
122120
*
123121
* @return NSAPI_ERROR_OK on success
124122
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -128,9 +126,8 @@ class CellularDevice {
128126
/** Start the interface
129127
*
130128
* Attempts to register the device to cellular network.
131-
* By default this API is synchronous. API can be set to asynchronous with method set_blocking(...).
132-
* In synchronous and asynchronous mode application can get result in from callback which is set with
133-
* attach(...)
129+
* API is asynchronous. Application can get results from CellularContext callback which is set
130+
* with attach(...) or callback which is set by attach(...) in this class.
134131
*
135132
* @return NSAPI_ERROR_OK on success
136133
* NSAPI_ERROR_NO_MEMORY on case of memory failure
@@ -140,9 +137,8 @@ class CellularDevice {
140137
/** Start the interface
141138
*
142139
* Attempts to attach the device to cellular network.
143-
* By default this API is synchronous. API can be set to asynchronous with method set_blocking(...).
144-
* In synchronous and asynchronous mode application can get result in from callback which is set with
145-
* attach(...)
140+
* API is asynchronous. Application can get results from CellularContext callback which is set
141+
* with attach(...) or callback which is set by attach(...) in this class.
146142
*
147143
* @return NSAPI_ERROR_OK on success
148144
* NSAPI_ERROR_NO_MEMORY on case of memory failure

0 commit comments

Comments
 (0)