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:
2:8d3ea0dfce39
Parent:
0:563b70517320
Child:
10:2bd727a4b329
--- a/io/MTSSerialFlowControl.h	Mon Dec 09 16:10:26 2013 +0000
+++ b/io/MTSSerialFlowControl.h	Wed Dec 11 20:07:02 2013 +0000
@@ -3,18 +3,29 @@
 
 #include "mbed.h"
 #include "MTSBufferedIO.h"
-/*
+
 class MTSSerialFlowControl : public MTSBufferedIO
 {
 public:
-    MTSSerialFlowControl(PinName TXD, PinName RXD, PinName RTS, PinName CTS, int txBufSize, int rxBufSize);
+    MTSSerialFlowControl(PinName TXD, PinName RXD, PinName RTS, PinName CTS, int txBufSize = 64, int rxBufSize = 64);
     ~MTSSerialFlowControl();
+    
+    void notifyStartSending();
+    void notifyStopSending();
 
 private:
-    DigitalIn* rts;
+    InterruptIn* rts;
     DigitalOut* cts;
-    void handleRead();
-    void handleWrite();
+    Serial* serial;
+    bool clearToSend;
+    int highThreshold;
+    int lowThreshold;
+    
+    void startSending();
+    void stopSending();
+
+    virtual void handleRead();
+    virtual void handleWrite();
 };
-*/
+
 #endif /* MTSSERIALFLOWCONTROL */
\ No newline at end of file