Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceNOTE. CR and LF characters may not be returned depending on the modespecified in the SPORT_CONNECT( ) call.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_CONNECT”, “SPORT_PEEK_DATA”, “SPORT_READ_LINE”,“SPORT_WRITE_DATA”, "Using the Serial I/O Port Routines" in your user’s guide,"Communications and "Communications Functions" in the Microsoft* Platform SDKExampleUSE IFPORTINTEGER(4) iresultINTEGERcountCHARACTER*1024 rbuffiresult = SPORT_READ_DATA( 2, rbuff, count )ENDSPORT_READ_LINESerial Port I/O Function: Reads a record from the specified port. This routine stalls until at leastone record has been read. This function is only available on Windows* systems.Module: USE IFPORTSyntaxresult = SPORT_READ_LINE (port, buffer [, count])port(Input) Integer. The port number.buffer(Output) Character*(*). The data that was read.count(Optional; output) Integer. The count of bytes read.Results:The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows error value.2-462

Descriptions of the Library Routines 2This routine will only return when a line terminator has been seen – as defined by the modespecified in the SPORT_CONNECT( ) call.NOTE. CR and LF characters may not be returned depending on the modespecified in the SPORT_CONNECT( ) call.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_CONNECT”, “SPORT_PEEK_LINE”, “SPORT_READ_DATA”,“SPORT_WRITE_LINE”, "Using the Serial I/O Port Routines" in your user’s guide,"Communications and "Communications Functions" in the Microsoft* Platform SDKExampleUSE IFPORTINTEGER(4) iresultINTEGERcountCHARACTER*1024 rbuffiresult = SPORT_READ_LINE( 2, rbuff, count )ENDSPORT_RELEASESerial Port I/O Function: Releases a serial port that was previously connected to (by usingSPORT_CONNECT). This function is only available on Windows* systems.Module: USE IFPORTSyntaxresult = SPORT_RELEASE (port)port(Input) Integer. The port number.Results:The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows error value.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_CONNECT”, "Using the Serial I/O Port Routines" in your user’s guide,"Communications and "Communications Functions" in the Microsoft* Platform SDK2-463

Descriptions of the Library Routines 2This routine will only return when a line terminator has been seen – as defined by the modespecified in the SPORT_CONNECT( ) call.NOTE. CR and LF characters may not be returned depending on the modespecified in the SPORT_CONNECT( ) call.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_CONNECT”, “SPORT_PEEK_LINE”, “SPORT_READ_DATA”,“SPORT_WRITE_LINE”, "Using the Serial I/O Port Routines" in your user’s guide,"Communications and "Communications Functions" in the Microsoft* Platform SDKExampleUSE IFPORTINTEGER(4) iresultINTEGERcountCHARACTER*1024 rbuffiresult = SPORT_READ_LINE( 2, rbuff, count )ENDSPORT_RELEASESerial Port I/O Function: Releases a serial port that was previously connected to (by usingSPORT_CONNECT). This function is only available on Windows* systems.Module: USE IFPORTSyntaxresult = SPORT_RELEASE (port)port(Input) Integer. The port number.Results:The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows error value.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_CONNECT”, "Using the Serial I/O Port Routines" in your user’s guide,"Communications and "Communications Functions" in the Microsoft* Platform SDK2-463

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!