@@ -124,6 +124,30 @@ class AT_CellularDevice : public CellularDevice {
124
124
*/
125
125
virtual nsapi_error_t release_at_handler (ATHandler *at_handler);
126
126
127
+ virtual CellularContext *get_context_list () const ;
128
+
129
+ virtual nsapi_error_t set_baud_rate (int baud_rate);
130
+
131
+ #if MBED_CONF_CELLULAR_USE_SMS
132
+ virtual CellularSMS *open_sms (FileHandle *fh = NULL );
133
+
134
+ virtual void close_sms ();
135
+ #endif
136
+
137
+ /* * Get value for the given key.
138
+ *
139
+ * @param key key for value to be fetched
140
+ * @return property value for the given key. Value type is defined in enum CellularProperty
141
+ */
142
+ intptr_t get_property (CellularProperty key);
143
+
144
+ /* * Cellular module need to define an array of cellular properties which defines module supported property values.
145
+ *
146
+ * @param property_array array of module properties
147
+ */
148
+ void set_cellular_properties (const intptr_t *property_array);
149
+
150
+ protected:
127
151
/* * Creates new instance of AT_CellularContext or if overridden, modem specific implementation.
128
152
*
129
153
* @param at ATHandler reference for communication with the modem.
@@ -149,50 +173,15 @@ class AT_CellularDevice : public CellularDevice {
149
173
*/
150
174
virtual AT_CellularInformation *open_information_impl (ATHandler &at);
151
175
152
- virtual CellularContext *get_context_list () const ;
153
-
154
- virtual nsapi_error_t set_baud_rate (int baud_rate);
155
-
156
176
#if MBED_CONF_CELLULAR_USE_SMS
157
- virtual CellularSMS *open_sms (FileHandle *fh = NULL );
158
-
159
- virtual void close_sms ();
160
-
161
177
/* * Create new instance of AT_CellularSMS or if overridden, modem specific implementation.
162
178
*
163
179
* @param at ATHandler reference for communication with the modem.
164
180
* @return new instance of class AT_CellularSMS
165
181
*/
166
182
virtual AT_CellularSMS *open_sms_impl (ATHandler &at);
167
-
168
- AT_CellularSMS *_sms;
169
-
170
183
#endif // MBED_CONF_CELLULAR_USE_SMS
171
184
172
- public:
173
- /* * Get value for the given key.
174
- *
175
- * @param key key for value to be fetched
176
- * @return property value for the given key. Value type is defined in enum CellularProperty
177
- */
178
- intptr_t get_property (CellularProperty key);
179
-
180
- /* * Cellular module need to define an array of cellular properties which defines module supported property values.
181
- *
182
- * @param property_array array of module properties
183
- */
184
- void set_cellular_properties (const intptr_t *property_array);
185
-
186
- public: // Member variables
187
- AT_CellularNetwork *_network;
188
-
189
- AT_CellularInformation *_information;
190
- AT_CellularContext *_context_list;
191
- int _default_timeout;
192
- bool _modem_debug_on;
193
- ATHandler *_at;
194
-
195
- protected:
196
185
virtual void cellular_callback (nsapi_event_t ev, intptr_t ptr, CellularContext *ctx = NULL );
197
186
void send_disconnect_to_context (int cid);
198
187
// Sets commonly used URCs
@@ -208,7 +197,20 @@ class AT_CellularDevice : public CellularDevice {
208
197
void urc_nw_deact ();
209
198
void urc_pdn_deact ();
210
199
200
+ protected:
201
+ ATHandler *_at;
202
+
211
203
private:
204
+ #if MBED_CONF_CELLULAR_USE_SMS
205
+ AT_CellularSMS *_sms;
206
+ #endif // MBED_CONF_CELLULAR_USE_SMS
207
+
208
+ AT_CellularNetwork *_network;
209
+ AT_CellularInformation *_information;
210
+ AT_CellularContext *_context_list;
211
+
212
+ int _default_timeout;
213
+ bool _modem_debug_on;
212
214
const intptr_t *_property_array;
213
215
};
214
216
0 commit comments