18 #ifndef AT_CELLULAR_DEVICE_H_    19 #define AT_CELLULAR_DEVICE_H_    26 class AT_CellularInformation;
    27 class AT_CellularNetwork;
    29 class AT_CellularContext;
    56 #if (DEVICE_SERIAL && DEVICE_INTERRUPTIN) || defined(DOXYGEN_ONLY)    58 #endif // #if DEVICE_SERIAL    76     virtual uint16_t get_send_delay() 
const;
   140     int _default_timeout;
   141     bool _modem_debug_on;
   146     void send_disconnect_to_context(
int cid);
   150     void urc_pdn_deact();
   154 #endif // AT_CELLULAR_DEVICE_H_ virtual nsapi_error_t get_sim_state(SimState &state)
Get SIM card's state. 
virtual AT_CellularContext * create_context_impl(ATHandler &at, const char *apn, bool cp_req=false, bool nonip_req=false)
Creates new instance of AT_CellularContext or if overridden, modem specific implementation. 
virtual void close_information()
Closes the opened CellularInformation by deleting the CellularInformation instance. 
virtual void set_ready_cb(Callback< void()> callback)
Set callback function to listen when device is ready. 
virtual void close_sms()
Closes the opened CellularSMS by deleting the CellularSMS instance. 
CellularContext is CellularInterface/NetworkInterface with extensions for cellular connectivity...
virtual nsapi_error_t is_ready()
Check whether the device is ready to accept commands. 
virtual nsapi_error_t set_pin(const char *sim_pin)
Open the SIM card by setting the pin code for SIM. 
signed int nsapi_error_t
Type used to represent error codes. 
virtual void cellular_callback(nsapi_event_t ev, intptr_t ptr, CellularContext *ctx=NULL)
Cellular callback to be attached to Network and CellularStateMachine classes. 
virtual AT_CellularSMS * open_sms_impl(ATHandler &at)
Create new instance of AT_CellularSMS or if overridden, modem specific implementation. 
Class providing buffered UART communication functionality using separate circular buffer for send and...
virtual nsapi_error_t soft_power_on()
Powers up the modem. 
virtual ATHandler * get_at_handler()
Get the current ATHandler instance in use for debug purposes etc. 
virtual nsapi_error_t soft_power_off()
Powers down the modem. 
virtual CellularContext * get_context_list() const 
Get the linked list of CellularContext instances. 
virtual nsapi_error_t shutdown()
Shutdown cellular device to minimum functionality. 
virtual void close_network()
Closes the opened CellularNetwork by deleting the CellularNetwork instance. 
virtual CellularNetwork * open_network(FileHandle *fh=NULL)
Create new CellularNetwork interface. 
virtual AT_CellularNetwork * open_network_impl(ATHandler &at)
Create new instance of AT_CellularNetwork or if overridden, modem specific implementation. 
virtual AT_CellularInformation * open_information_impl(ATHandler &at)
Create new instance of AT_CellularInformation or if overridden, modem specific implementation. 
An abstract interface for connecting to a network and getting information from it. 
virtual CellularInformation * open_information(FileHandle *fh=NULL)
Create new CellularInformation interface. 
virtual nsapi_error_t init()
Initialize cellular device must be called right after the module is ready. 
virtual nsapi_error_t hard_power_on()
Sets the modem up for powering on This is equivalent to plugging in the device, i.e., attaching power and serial port. 
virtual nsapi_error_t hard_power_off()
Sets the modem in unplugged state. 
virtual nsapi_error_t release_at_handler(ATHandler *at_handler)
Releases the given at_handler. 
virtual CellularContext * create_context(FileHandle *fh=NULL, const char *apn=NULL, bool cp_req=false, bool nonip_req=false)
Creates a new CellularContext interface. 
virtual void delete_context(CellularContext *context)
Deletes the given CellularContext instance. 
virtual CellularSMS * open_sms(FileHandle *fh=NULL)
Create new CellularSMS interface. 
virtual void set_timeout(int timeout)
Set the default response timeout. 
virtual void modem_debug_on(bool on)
Turn modem debug traces on. 
Class AT_CellularNetwork. 
virtual nsapi_error_t set_power_save_mode(int periodic_time, int active_time=0)
Set power save mode. 
Callback class based on template specialization. 
Class for sending AT commands and parsing AT responses.