Send direction works!

This commit is contained in:
Florian Pose
2009-12-02 15:38:10 +01:00
parent 850d70d6d6
commit 6dbc77cd62
3 changed files with 296 additions and 25 deletions
+13
View File
@@ -69,6 +69,19 @@ void ectty_free(
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. */
);
/*****************************************************************************/
/** @} */