Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

SPORT_SHOW_STATE

Serial Port I/O Function: Displays the state of a port to standard output. This routine is only available for Windows.

Module

USE IFPORT

result = SPORT_SHOW_STATE (port,level)

port

(Input) Integer. The port number.

level

(Input) Integer. Controls the level of detail displayed as follows:

0

Basic one line display

1

Basic information

2

Add modem signal control flow information

3

Add XON/XOFF information

4

Add event character information

11

Add timeout information

901

Add debug information

Results

The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows* 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.

Example

USE IFPORT
INTEGER(4) iresult
iresult =  SPORT_SHOW_STATE( 2, 0 )
END

See Also