@@ -123,6 +123,30 @@ class AT_CellularDevice : public CellularDevice {
123123 */
124124 virtual nsapi_error_t release_at_handler (ATHandler *at_handler);
125125
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:
126150 /* * Creates new instance of AT_CellularContext or if overridden, modem specific implementation.
127151 *
128152 * @param at ATHandler reference for communication with the modem.
@@ -148,50 +172,15 @@ class AT_CellularDevice : public CellularDevice {
148172 */
149173 virtual AT_CellularInformation *open_information_impl (ATHandler &at);
150174
151- virtual CellularContext *get_context_list () const ;
152-
153- virtual nsapi_error_t set_baud_rate (int baud_rate);
154-
155175#if MBED_CONF_CELLULAR_USE_SMS
156- virtual CellularSMS *open_sms (FileHandle *fh = NULL );
157-
158- virtual void close_sms ();
159-
160176 /* * Create new instance of AT_CellularSMS or if overridden, modem specific implementation.
161177 *
162178 * @param at ATHandler reference for communication with the modem.
163179 * @return new instance of class AT_CellularSMS
164180 */
165181 virtual AT_CellularSMS *open_sms_impl (ATHandler &at);
166-
167- AT_CellularSMS *_sms;
168-
169182#endif // MBED_CONF_CELLULAR_USE_SMS
170183
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:
195184 virtual void cellular_callback (nsapi_event_t ev, intptr_t ptr, CellularContext *ctx = NULL );
196185 void send_disconnect_to_context (int cid);
197186 // Sets commonly used URCs
@@ -207,7 +196,20 @@ class AT_CellularDevice : public CellularDevice {
207196 void urc_nw_deact ();
208197 void urc_pdn_deact ();
209198
199+ protected:
200+ ATHandler *_at;
201+
210202private:
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;
211213 const intptr_t *_property_array;
212214};
213215
0 commit comments