#include <oskit/io/ttystream.h>OSKIT_COMDECL sendbreak(oskit_ttystream_t *tty, oskit_u32_t duration);
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.
- 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 0 on success, or an error code specified in <oskit/error.h>, on error.