]> sigrok.org Git - libserialport.git/blobdiff - libserialport.h.in
Add sp_start_break() and sp_end_break() functions.
[libserialport.git] / libserialport.h.in
index 79f315f6c0df6401a289f26d0fd8b55e7f2e33f0..704ffed02fb8e02f9f3b5685f9c1640137687d5e 100644 (file)
@@ -534,6 +534,28 @@ enum sp_return sp_flush(struct sp_port *port, enum sp_buffer buffers);
  */
 enum sp_return sp_drain(struct sp_port *port);
 
+/**
+ * @}
+ * @defgroup Signal Port signalling operations
+ * @{
+ */
+
+/**
+ * Put the port transmit line into the break state.
+ *
+ * @return SP_OK on success, SP_ERR_FAIL on failure, or SP_ERR_ARG
+ *         if an invalid port is passed.
+ */
+enum sp_return sp_start_break(struct sp_port *port);
+
+/**
+ * Take the port transmit line out of the break state.
+ *
+ * @return SP_OK on success, SP_ERR_FAIL on failure, or SP_ERR_ARG
+ *         if an invalid port is passed.
+ */
+enum sp_return sp_end_break(struct sp_port *port);
+
 /**
  * @}
  * @defgroup Errors Obtaining error information