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:
83:9813f9b8ee68
Parent:
81:45e1359a5c69
Child:
86:186bbf974c7c
--- a/io/MTSSerialFlowControl.cpp	Fri Dec 27 15:41:24 2013 +0000
+++ b/io/MTSSerialFlowControl.cpp	Fri Dec 27 15:55:35 2013 +0000
@@ -5,12 +5,8 @@
 
 using namespace mts;
 
-MTSSerialFlowControl::MTSSerialFlowControl(PinName TXD, PinName RXD, PinName RTS, PinName CTS, int txBufSize, int rxBufSize, char* name) : MTSBufferedIO(txBufSize, rxBufSize), if_name(name)
+MTSSerialFlowControl::MTSSerialFlowControl(PinName TXD, PinName RXD, PinName RTS, PinName CTS, int txBufSize, int rxBufSize, char* name) : MTSSerial(TXD, RXD, txBufSize, rxBufSize, name)
 {
-    serial = new Serial(TXD, RXD);
-    serial->attach(this, &MTSSerialFlowControl::handleRead, Serial::RxIrq);
-    //serial->attach(this, &MTSSerialFlowControl::handleWrite, Serial::TxIrq);
-
     rts = new DigitalOut(RTS);
     cts = new DigitalIn(CTS);
     notifyStartSending();
@@ -26,17 +22,6 @@
 {
     delete rts;
     delete cts;
-    delete serial;
-}
-
-void MTSSerialFlowControl::baud(int baudrate)
-{
-    serial->baud(baudrate);
-}
-
-void MTSSerialFlowControl::format(int bits, SerialBase::Parity parity, int stop_bits)
-{
-    serial->format(bits, parity, stop_bits);
 }
 
 void MTSSerialFlowControl::notifyStartSending()