The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: platform/ATCmdParser.h
- Revision:
- 170:e95d10626187
- Parent:
- 165:d1b4690b3f8b
- Child:
- 171:3a7713b1edbc
--- a/platform/ATCmdParser.h Fri Jun 22 15:38:59 2018 +0100 +++ b/platform/ATCmdParser.h Thu Sep 06 13:39:34 2018 +0100 @@ -52,8 +52,7 @@ * @endcode */ -class ATCmdParser : private NonCopyable<ATCmdParser> -{ +class ATCmdParser : private NonCopyable<ATCmdParser> { private: // File handle // Not owned by ATCmdParser @@ -90,8 +89,8 @@ * @param debug turns on/off debug output for AT commands */ ATCmdParser(FileHandle *fh, const char *output_delimiter = "\r", - int buffer_size = 256, int timeout = 8000, bool debug = false) - : _fh(fh), _buffer_size(buffer_size), _in_prev(0), _oobs(NULL) + int buffer_size = 256, int timeout = 8000, bool debug = false) + : _fh(fh), _buffer_size(buffer_size), _in_prev(0), _oobs(NULL) { _buffer = new char[buffer_size]; set_timeout(timeout); @@ -198,7 +197,7 @@ * @param ... all printf-like arguments to insert into command * @return true only if command is successfully sent */ - bool send(const char *command, ...) MBED_PRINTF_METHOD(1,2); + bool send(const char *command, ...) MBED_PRINTF_METHOD(1, 2); bool vsend(const char *command, va_list args); @@ -216,7 +215,7 @@ * @param ... all scanf-like arguments to extract from response * @return true only if response is successfully matched */ - bool recv(const char *response, ...) MBED_SCANF_METHOD(1,2); + bool recv(const char *response, ...) MBED_SCANF_METHOD(1, 2); bool vrecv(const char *response, va_list args); @@ -261,7 +260,7 @@ * @param ... arguments to printf * @return number of bytes written or -1 on failure */ - int printf(const char *format, ...) MBED_PRINTF_METHOD(1,2); + int printf(const char *format, ...) MBED_PRINTF_METHOD(1, 2); int vprintf(const char *format, va_list args); @@ -273,7 +272,7 @@ * @param ... arguments to scanf * @return number of bytes read or -1 on failure */ - int scanf(const char *format, ...) MBED_SCANF_METHOD(1,2); + int scanf(const char *format, ...) MBED_SCANF_METHOD(1, 2); int vscanf(const char *format, va_list args); @@ -298,7 +297,7 @@ * recv operation. */ void abort(); - + /** * Process out-of-band data *