Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Revision:
9:1a03e3f3e7fe
Parent:
8:2d7259d244d1
Child:
10:c188cc05aed5
--- a/Cellular/Cellular.h	Wed May 21 15:28:37 2014 -0500
+++ b/Cellular/Cellular.h	Wed May 21 15:39:35 2014 -0500
@@ -196,6 +196,11 @@
     * @returns true if the init was successful, otherwise false.
     */
     virtual bool init(MTSBufferedIO* io);
+    
+    /**
+    *
+    */
+    bool configureSignals(unsigned int DCD = NC, unsigned int DTR = NC, unsigned int RESET = NC);
 
     /** A method for testing command access to the radio.  This method sends the
     * command "AT" to the radio, which is a standard radio test to see if you
@@ -317,6 +322,8 @@
     bool pppConnected; //Specifies if a PPP session is currently connected.
     std::string apn; //A string that holds the APN for the radio.
 
+    Radio type; //The type of radio being used
+
     Mode mode; //The current socket Mode.
     bool socketOpened; //Specifies if a Socket is presently opened.
     bool socketCloseable; //Specifies is a Socket can be closed.
@@ -324,6 +331,10 @@
     std::string local_address; //Holds the local address for socket connections.
     unsigned int host_port; //Holds the remote port for socket connections.
     std::string host_address; //Holds the remote address for socket connections.
+
+    DigitalIn* dcd; //Maps to the radio's dcd signal
+    DigitalOut* dtr; //Maps to the radio's dtr signal
+    DigitalOut* resetLine; //Maps to the radio's reset signal 
 };
 
 }