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

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: histogram, VLOG 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') | no next file with comments »
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..bd8255e03b18edb824687f3cd7cabbabab55398d 100644
--- a/device/serial/serial_io_handler.h
+++ b/device/serial/serial_io_handler.h
@@ -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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698