Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld ServoInterfaceBoardExample1 4180_Lab4
Diff: drv/at/ATIf.h
- Revision:
- 4:fd826cad83c0
- Parent:
- 0:632c9925f013
diff -r 95e0bc00a1bb -r fd826cad83c0 drv/at/ATIf.h
--- a/drv/at/ATIf.h Fri Jun 18 10:38:57 2010 +0000
+++ b/drv/at/ATIf.h Fri Jul 09 14:46:47 2010 +0000
@@ -52,7 +52,8 @@
ATIf();
virtual ~ATIf();
-
+
+#if 0
template<class T>
//void attachSignal( const char* sigName, T* pItem, bool (T::*pMethod)(ATIf*, bool, bool*) ); //Attach Signal ("Unsollicited response code" in Telit_AT_Reference_Guide.pdf) to an handler fn
//Linker bug : Must be defined here :(
@@ -62,6 +63,7 @@
m_signals.push_back(sig);
}
void detachSignal( const char* sigName );
+#endif
ATErr open(Serial* pSerial); //Deactivate echo, etc
#if NET_USB_SERIAL
@@ -73,12 +75,12 @@
int scanf(const char* format, ... );
void setTimeout(int timeout); //used by scanf
void setLineMode(bool lineMode); //Switch btw line & raw fns
- void setSignals(bool signalsEnable);
+ //void setSignals(bool signalsEnable);
ATErr flushBuffer(); //Discard input buffer
ATErr flushLine(int timeout); //Discard input buffer until CRLF is encountered
protected:
- virtual bool onRead(); //Inherited from SerialBuf, return true if data is incomplete
+ //virtual bool onRead(); //Inherited from SerialBuf, return true if data is incomplete
ATErr rawOpen(Serial* pSerial, int baudrate); //Simple open function for similar non-conforming protocols
public:
@@ -97,11 +99,12 @@
volatile int m_readTimeout;
volatile bool m_lineMode;
- bool m_signalsEnable;
+ //bool m_signalsEnable;
bool m_isOpen;
char* m_tmpBuf;
-
+
+#if 0
class ATSigHandler
{
class CDummy;
@@ -120,6 +123,7 @@
bool handleSignal(); //Returns true if signal has been handled
list<ATSigHandler> m_signals;
+#endif
};