include/ectty.h
changeset 1575 17598f2332b6
parent 1569 61f5f4c35883
child 1577 fa3f66b783c1
equal deleted inserted replaced
1574:be344b8ca0e8 1575:17598f2332b6
    67  */
    67  */
    68 void ectty_free(
    68 void ectty_free(
    69         ec_tty_t *tty /**< TTY interface. */
    69         ec_tty_t *tty /**< TTY interface. */
    70         );
    70         );
    71 
    71 
       
    72 /** Reads data to send from the TTY interface.
       
    73  *
       
    74  * If there are data to send, they are copied into the \a buffer. At maximum,
       
    75  * \a size bytes are copied. The actual number of bytes copied is returned.
       
    76  *
       
    77  * \return Number of bytes copied.
       
    78  */
       
    79 unsigned int ectty_tx_data(
       
    80         ec_tty_t *tty, /**< TTY interface. */
       
    81         uint8_t *buffer, /**< Buffer for data to transmit. */
       
    82         size_t size /**< Available space in \a buffer. */
       
    83         );
       
    84 
    72 /*****************************************************************************/
    85 /*****************************************************************************/
    73 
    86 
    74 /** @} */
    87 /** @} */
    75 
    88 
    76 #endif
    89 #endif