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:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
--- a/platform/ATCmdParser.h Thu Nov 08 11:45:42 2018 +0000 +++ b/platform/ATCmdParser.h Wed Feb 20 20:53:29 2019 +0000 @@ -1,4 +1,5 @@ /* Copyright (c) 2017 ARM Limited + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,9 +21,10 @@ #ifndef MBED_ATCMDPARSER_H #define MBED_ATCMDPARSER_H -#include "mbed.h" #include <cstdarg> #include "Callback.h" +#include "NonCopyable.h" +#include "FileHandle.h" namespace mbed { @@ -169,7 +171,7 @@ /** * Allows traces from modem to be turned on or off * - * @param on Set as 1 to turn on traces and vice versa. + * @param on Set as 1 to turn on traces and 0 to disable traces. */ void debug_on(uint8_t on) { @@ -182,7 +184,7 @@ * * Allows traces from modem to be turned on or off * - * @param on Set as 1 to turn on traces and vice versa. + * @param on Set as 1 to turn on traces and 0 to disable traces. */ MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with debug_on for consistency") void debugOn(uint8_t on) @@ -203,7 +205,7 @@ */ bool send(const char *command, ...) MBED_PRINTF_METHOD(1, 2); - bool vsend(const char *command, va_list args); + bool vsend(const char *command, std::va_list args); /** * Receive an AT response @@ -221,7 +223,7 @@ */ bool recv(const char *response, ...) MBED_SCANF_METHOD(1, 2); - bool vrecv(const char *response, va_list args); + bool vrecv(const char *response, std::va_list args); /** * Write a single byte to the underlying stream @@ -266,7 +268,7 @@ */ int printf(const char *format, ...) MBED_PRINTF_METHOD(1, 2); - int vprintf(const char *format, va_list args); + int vprintf(const char *format, std::va_list args); /** * Direct scanf on underlying stream @@ -278,7 +280,7 @@ */ int scanf(const char *format, ...) MBED_SCANF_METHOD(1, 2); - int vscanf(const char *format, va_list args); + int vscanf(const char *format, std::va_list args); /** * Attach a callback for out-of-band data