SPORT_GET_TIMEOUTS

Run-Time Function: Returns the user selectable timeouts for the serial port.

Module: USE DFLIB

Syntax

iresult = SPORT_GET_TIMEOUTS (port [, rx_int] [, tx_tot_mult] [, tx_tot_const])

port
(Input) Integer. The port number.


rx_int
(Optional; output) INTEGER(4). The receive interval timeout value.


tx_tot_mult
(Optional; output) INTEGER(4). The transmit multiplier part of the timeout value.


tx_tot_const
(Optional; output) 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.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: SPORT_SET_TIMEOUTS, Using the Serial I/O Port Routines, and Communications, and Communications Functions in the Win32 SDK

Example

USE DFLIB
INTEGER(4) iresult
INTEGER*4  rx_int
INTEGER*4  tx_tot_mult
INTEGER*4  tx_tot_const

iresult =  SPORT_GET_TIMEOUTS( 2, rx_int, tx_tot_mult, tx_tot_const )
END