Intel® Fortran Compiler 17.0 Developer Guide and Reference
Serial Port I/O Function: Establishes the connection to a serial port and defines certain usage parameters.
USE IFPORT
result = SPORT_CONNECT (port [,options])
port |
(Input) Integer. The port number of connection. The routine will open COM n, where n is the port number specified. |
||||||||||||||||
options |
(Input; optional) Integer. Defines the connection options. These options define how the nnn_LINE routines will work and also effect the data that is passed to the user. If more than one option is specified, the operator .OR. should be used between each option. Options are as follows:
|
If options is not specified, the following occurs by default:
(DL_OUT_CR .OR. DL_TERM_CR .OR. DL_TOSS_CR .OR. DL_TOSS_LF)
This specifies to remove carriage returns and linefeeds on input, to follow output lines with a carriage return, and to return input lines when a carriage return is encountered.
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows* error value.
USE IFPORT
INTEGER(4) iresult
iresult = SPORT_CONNECT( 2 )
END
Communications and Communications Functions in the Microsoft* Platform SDK