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
Diff: io/MTSSerial.h
- Revision:
- 86:186bbf974c7c
- Parent:
- 83:9813f9b8ee68
- Child:
- 120:3051dd49fa3a
--- a/io/MTSSerial.h Fri Dec 27 15:55:35 2013 +0000 +++ b/io/MTSSerial.h Fri Dec 27 16:40:23 2013 +0000 @@ -24,9 +24,8 @@ * default is 64 bytes. * @param rxBufferSize the size in bytes of the internal SW receive buffer. The * default is 64 bytes. - * @param name an optional name for the serial port. The default is "". */ - MTSSerial(PinName TXD, PinName RXD, int txBufferSize = 64, int rxBufferSize = 64, char* name = ""); + MTSSerial(PinName TXD, PinName RXD, int txBufferSize = 64, int rxBufferSize = 64); /** Destructs an MTSSerial object and frees all related resources, including * internal buffers. @@ -49,12 +48,9 @@ void format(int bits=8, SerialBase::Parity parity=mbed::SerialBase::None, int stop_bits=1); protected: - Serial* serial; // Internal mbed Serial object + Serial serial; // Internal mbed Serial object private: - int writeSize; // Amount of data to write based on buffer size - char* if_name; // Name of the interface - virtual void handleWrite(); // Method for handling data to be written virtual void handleRead(); // Method for handling data to be read };