include/ectty.h
changeset 1779 9fab229d6ca9
parent 1577 fa3f66b783c1
child 1782 2ba454c790c5
equal deleted inserted replaced
1778:94dbb44884ec 1779:9fab229d6ca9
    52 /******************************************************************************
    52 /******************************************************************************
    53  * Global functions
    53  * Global functions
    54  *****************************************************************************/
    54  *****************************************************************************/
    55 
    55 
    56 /** Create a virtual TTY interface.
    56 /** Create a virtual TTY interface.
    57  * 
    57  *
       
    58  * \param cflag_cb This callback function is called when the serial settings
       
    59  * shall be changed. The \a cb_data argument is the same as the \a cb_data
       
    60  * given on device creation, while the \a cflag argument contains the new
       
    61  * settings.
       
    62  * \param cb_data Arbitrary data to pass to callbacks.
       
    63  *
    58  * \return Pointer to the interface object, otherwise an ERR_PTR value.
    64  * \return Pointer to the interface object, otherwise an ERR_PTR value.
    59  */
    65  */
    60 ec_tty_t *ectty_create(void);
    66 ec_tty_t *ectty_create(
       
    67         int (*cflag_cb)(void *cb_data, unsigned short cflag),
       
    68         void *cb_data
       
    69         );
    61 
    70 
    62 /******************************************************************************
    71 /******************************************************************************
    63  * TTY interface methods
    72  * TTY interface methods
    64  *****************************************************************************/
    73  *****************************************************************************/
    65 
    74