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.
Fork of mbed by
Diff: Stream.h
- Revision:
- 0:82220227f4fa
- Child:
- 1:6b7f447ca868
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Stream.h Tue Apr 08 14:12:21 2008 +0000
@@ -0,0 +1,37 @@
+/* mbed Microcontroller Library - Stream
+ * Copyright (c) 2007-2008, sford
+ */
+
+#ifndef MBED_STREAM_H
+#define MBED_STREAM_H
+
+#include "Base.h"
+
+namespace mbed {
+
+class Stream : public Base {
+
+public:
+
+ Stream();
+
+ int putc(int c);
+ int getc();
+ int printf(const char* format, ...);
+ int scanf(const char* format, ...);
+
+ int _backspace();
+
+protected:
+
+ virtual int _putc(int c) = 0;
+ virtual int _getc() = 0;
+
+ int _back;
+ int _last;
+
+};
+
+} // namespace mbed
+
+#endif
\ No newline at end of file
