next up previous contents index
Next: 5.7.4 drain: Wait until Up: 5.7 oskit_ttystream: Interface to Previous: 5.7.2 setattr: Set the

5.7.3 sendbreak: Send a break signal

 

SYNOPSIS

#include <oskit/io/ttystream.h>

OSKIT_COMDECL sendbreak(oskit_ttystream_t *tty, oskit_u32_t duration);

DESCRIPTION

On streams controlling asynchronous serial communication, this method sends a break signal (a continuous stream of zero-valued bits) for a specific duration. This method corresponds to the POSIX tcsendbreak function; see the POSIX standard for details.

PARAMETERS

tty
The TTY stream on which to send the break.
duration
The duration of the break signal to send. If this parameter is zero, then the duration will be between 0.25 and 0.5 seconds.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group