Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: device/serial/serial_io_handler.h

Issue 1128943005: Implement break signal for serial api. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/serial/serial_io_handler_posix.h » ('j') | device/serial/serial_io_handler_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler.h
diff --git a/device/serial/serial_io_handler.h b/device/serial/serial_io_handler.h
index 1b2a8c49d4ac47fd0dca17174c6e9d50da4d23b6..d59eb543f1c6f2543777f6d82b11f11fc3e0fa03 100644
--- a/device/serial/serial_io_handler.h
+++ b/device/serial/serial_io_handler.h
@@ -44,7 +44,7 @@ class SerialIoHandler : public base::NonThreadSafe,
void Read(scoped_ptr<WritableBuffer> buffer);
// Performs an async Write operation. Behavior is undefined if this is called
- // while a Write is already pending. Otherwise, the Done or DoneWithError
+ // while a Write is already pending. Otherwise, the Done or DoneWithError //
Ken Rockot(use gerrit already) 2015/06/10 19:07:18 please remove this change
limasdf 2015/06/11 22:14:23 Done.
// method on |buffer| will eventually be called with a result.
void Write(scoped_ptr<ReadOnlyBuffer> buffer);
@@ -83,6 +83,14 @@ class SerialIoHandler : public base::NonThreadSafe,
// successfully retrieved.
virtual serial::ConnectionInfoPtr GetPortInfo() const = 0;
+ // Initiates a BREAK signal. Places the transmission line in a break state
+ // until the |ClearBreak| is called.
+ virtual bool SetBreak() = 0;
+
+ // Terminates the BREAK signal. Places the transmission line in a nonbreak
+ // state.
+ virtual bool ClearBreak() = 0;
+
protected:
explicit SerialIoHandler(
scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner,
« no previous file with comments | « no previous file | device/serial/serial_io_handler_posix.h » ('j') | device/serial/serial_io_handler_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698