SPORT routines help you do basic input and output to serial ports. To use a SPORT routine, add the following statement to the program unit containing the routine:
Table E-9 summarizes SPORT routines.
Table E-9 Summary of SPORT Routines (WNT, W9*)
Name | Description |
---|---|
SPORT_CANCEL_IO | Cancels any I/O in progress to the specified port. |
SPORT_CONNECT | Establishes the connection to a serial port. |
SPORT_GET_HANDLE | Returns the WIN32 handle associated with the communications port. |
SPORT_GET_STATE | Returns the baud rate, parity, data bits setting, and stop bits setting of the communications port. |
SPORT_GET_TIMEOUTS | Returns the user selectable timeouts for the serial port. |
SPORT_PEEK_DATA | Returns information about the availability of input data. |
SPORT_PEEK_LINE | Returns information about the availability of input records. |
SPORT_PURGE | Executes a purge function on the specified port. |
SPORT_READ_DATA | Reads available data from the port specified. |
SPORT_READ_LINE | Reads a record from the port specified. |
SPORT_RELEASE | Releases a serial port that has previously been connected. |
SPORT_SET_STATE | Sets the baud rate, parity, data bits setting, and stop bits setting of the communications port. |
SPORT_SET_TIMEOUTS | Sets the user selectable timeouts for the serial port. |
SPORT_SHOW_STATE | Displays the state of a port. |
SPORT_SPECIAL_FUNC | Executes a communications function on a specified port. |
SPORT_WRITE_DATA | Outputs data to a specified port. |
SPORT_WRITE_LINE | Outputs data to a specified port and follows it with a record terminator. |
For more information on these routines, see the Compaq Visual Fortran online Reference.