include/ectty.h
changeset 1575 17598f2332b6
parent 1569 61f5f4c35883
child 1577 fa3f66b783c1
--- a/include/ectty.h	Tue Dec 01 22:33:24 2009 +0100
+++ b/include/ectty.h	Wed Dec 02 15:38:10 2009 +0100
@@ -69,6 +69,19 @@
         ec_tty_t *tty /**< TTY interface. */
         );
 
+/** Reads data to send from the TTY interface.
+ *
+ * If there are data to send, they are copied into the \a buffer. At maximum,
+ * \a size bytes are copied. The actual number of bytes copied is returned.
+ *
+ * \return Number of bytes copied.
+ */
+unsigned int ectty_tx_data(
+        ec_tty_t *tty, /**< TTY interface. */
+        uint8_t *buffer, /**< Buffer for data to transmit. */
+        size_t size /**< Available space in \a buffer. */
+        );
+
 /*****************************************************************************/
 
 /** @} */