SPORT_SET_TIMEOUTS
Run-Time Function: Sets the user selectable
timeouts for the serial port.
Module: USE DFLIB
Syntax
- iresult = SPORT_SET_TIMEOUTS (port [, rx_int]
[, tx_tot_mult] [, tx_tot_const])
- port
(Input) Integer. The port number.
- rx_int
(Optional; input) INTEGER(4). The receive interval timeout value.
- tx_tot_mult
(Optional; input) INTEGER(4). The transmit multiplier part of
the timeout value.
- tx_tot_const
(Optional; input) INTEGER(4). The transmit constant part of
the timeout value.
Results:
The result is of type INTEGER(4).
The result is zero if successful; otherwise, a Win32 error value.
Note: This routine must not be used when any I/O
is pending. Since a read
operation is always pending after any I/O has been started, you
must first call SPORT_CANCEL_IO before port parameters can be
changed.
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN
GRAPHICS WINDOWS DLL LIB
See Also:
SPORT_CANCEL_IO,
SPORT_GET_TIMEOUTS,
Using the Serial I/O Port Routines,
and Communications, and Communications Functions
in the Win32 SDK
Example
USE DFLIB
INTEGER(4) iresult
iresult = SPORT_SET_TIMEOUTS( 2, 100, 0, 1000 )
END