Открыл сорцы этой RXTX - та же фигня, вид сбоку. http://rxtx.qbang.org/wiki/index.php/Download
/rxtx-2.1-7r2/src/termios.c/*----------------------------------------------------------
tcsendbreak()
accept:
perform:
return:
exceptions:
win32api: None
comments:
break for duration*0.25 seconds or
0.25 seconds if duration = 0.
----------------------------------------------------------*/
int tcsendbreak( int fd, int duration )
{
struct termios_list *index;
COMSTAT Stat;
ENTER( "tcsendbreak" );
index = find_port( fd );
if ( !index )
{
LEAVE( "tcdrain" );
return -1;
}
if ( duration <= 0 ) duration = 1;
if( !SetCommBreak( index->hComm ) )
ClearErrors( index, &Stat );
/* 0.25 seconds == 250000 usec */
usleep( duration * 250000 );
if( !ClearCommBreak( index->hComm ) )
ClearErrors( index, &Stat );
LEAVE( "tcsendbreak" );
return 1;
}
/rxtx-2.1-7r2/src/termios.c