@@ -124,6 +124,30 @@ class AT_CellularDevice : public CellularDevice {
124124 */
125125 virtual nsapi_error_t release_at_handler (ATHandler *at_handler);
126126
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:
127151 /* * Creates new instance of AT_CellularContext or if overridden, modem specific implementation.
128152 *
129153 * @param at ATHandler reference for communication with the modem.
@@ -149,50 +173,15 @@ class AT_CellularDevice : public CellularDevice {
149173 */
150174 virtual AT_CellularInformation *open_information_impl (ATHandler &at);
151175
152- virtual CellularContext *get_context_list () const ;
153-
154- virtual nsapi_error_t set_baud_rate (int baud_rate);
155-
156176#if MBED_CONF_CELLULAR_USE_SMS
157- virtual CellularSMS *open_sms (FileHandle *fh = NULL );
158-
159- virtual void close_sms ();
160-
161177 /* * Create new instance of AT_CellularSMS or if overridden, modem specific implementation.
162178 *
163179 * @param at ATHandler reference for communication with the modem.
164180 * @return new instance of class AT_CellularSMS
165181 */
166182 virtual AT_CellularSMS *open_sms_impl (ATHandler &at);
167-
168- AT_CellularSMS *_sms;
169-
170183#endif // MBED_CONF_CELLULAR_USE_SMS
171184
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:
196185 virtual void cellular_callback (nsapi_event_t ev, intptr_t ptr, CellularContext *ctx = NULL );
197186 void send_disconnect_to_context (int cid);
198187 // Sets commonly used URCs
@@ -208,7 +197,20 @@ class AT_CellularDevice : public CellularDevice {
208197 void urc_nw_deact ();
209198 void urc_pdn_deact ();
210199
200+ protected:
201+ ATHandler *_at;
202+
211203private:
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;
212214 const intptr_t *_property_array;
213215};
214216
0 commit comments