A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
78:ef3ee53cf5df
Parent:
77:d7b14688a704
Child:
83:9813f9b8ee68
--- a/io/MTSSerialFlowControl.h	Thu Dec 26 21:54:19 2013 +0000
+++ b/io/MTSSerialFlowControl.h	Thu Dec 26 23:32:02 2013 +0000
@@ -55,20 +55,17 @@
     void format(int bits=8, SerialBase::Parity parity=mbed::SerialBase::None, int stop_bits=1);
 
 private:
-    void startSending(); // Used to process rts start signal
-    void stopSending(); // Used to process rts stop signal
     void notifyStartSending(); // Used to set cts start signal
     void notifyStopSending(); // Used to set cts stop signal
-    InterruptIn* rts; // Used to monitor the RTS line
-    DigitalOut* cts; // Used to control the CTS line
+    
+    //This device acts as a DTE
+    DigitalOut* rts; // Used to tell DCE to send or not send data
+    DigitalIn* cts; // Used to check if DCE is ready for data
     Serial* serial; // Internal Mbed Serial object
-    volatile bool clearToSend; // Flag determining if the CTS line is valid
     int highThreshold; // High water mark for setting cts to stop
     int lowThreshold; // Low water mark for setting cts to start
     char* if_name; // Internal variable for interface name
 
-
-
     virtual void handleRead(); // Method for handling data to be read
     virtual void handleWrite(); // Method for handling data to be written
 };