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